This package implements a simple interpreter for the language used in WildCAT to defined synthetic attributes and watched expressions.
The acutal language is very simple and supports:
+
, -
,
*
, div
)==
, !=
, <
, >
,
<=
, >=
)
and
, or
)f(x, y)
)
The default library of functions is currently minimal and only supports arithmetic functions and access to attributes values. However it is very easy to implement new functions and add them to an interpreter.
The front-end for the interpreter is in class {@link BasicInterpreter}, which implements the {@link Interpreter} interface. This simple interface can be used to parse expressions from strings and evaluate them.