ix.iscript
Class IScriptParser
java.lang.Object
ix.iscript.IScriptParser
public class IScriptParser
- extends java.lang.Object
A parser for the I-Script language. It converts an IScript
Expression
to an instance of an appropriate subclass
of Interpreter.Expr
.
It can also begin with a textual XML representation of
an Expression
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IScriptParser
public IScriptParser()
parseExpression
public Interpreter.Expr parseExpression(java.lang.String xml)
parseExpression
public Interpreter.Expr parseExpression(Expression expr)
do_parseExpression
Interpreter.Expr do_parseExpression(Expression expr)
parseList
java.util.List parseList(ix.iscript.ListOfExpression exprs)
parseLiteral
Interpreter.Literal parseLiteral(Literal lit)
parseVarRef
Interpreter.VarRef parseVarRef(VarRef ref)
parseCall
Interpreter.Call parseCall(Call expr)
parseAssignment
Interpreter.Assignment parseAssignment(Assignment expr)
parseIf
Interpreter.If parseIf(If expr)
parseSequence
Interpreter.Sequence parseSequence(Sequence expr)
parseAnd
Interpreter.And parseAnd(And expr)
parseOr
Interpreter.Or parseOr(Or expr)
parseLet
Interpreter.Let parseLet(Let expr)
parseLambda
Interpreter.Lambda parseLambda(Lambda expr)
parseWhile
Interpreter.While parseWhile(While expr)