Overview
>
klyn
>
Application
>
eval
Overview
Index
Tree
Deprecated
klyn.Application.eval
method
public static native eval(code as String) throws SyntaxError, TypeError, Exception
Description
Compiles and executes a Klyn script provided as a string. result = Application.eval("40 + 2") print(result)
Parameters
code Klyn source code to compile and execute.
Throws
SyntaxError if the code contains a syntax error.
TypeError if the code contains a type error.
Exception if compilation or execution fails.
Example