kipa's first well-constructed language starting from 3-day coding.
Download parsexpr.py. You have 2 options:
- Execute directly. This will run parsexpr.py as a shell.
- Put it to the path of your python program. This allows you to preprocess the environment and postprocess the result.
There are some functions you can use to interpret kipalang scripts.
parsexpr.evaluate(s)
evaluates s
as a kipalang script and returns the result.
Note that the script execution can be restricted by print buffer length or time limitation.
parsexpr.setBufferSize(l)
restricts print buffer length to l
.
If l
is omitted or less than zero then this removes the buffer length restriction.
parsexpr.setTimeout(t)
resticts the script exection time up to t
second(s).
If t
is omitted or less than zero then this removes the execution time limitation.