Class Exp
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.sapere.dsl.parser.ExpConstants
public class Exp implements ExpConstants
-
-
Field Summary
Fields Modifier and Type Field Description public Token
jj_nt
public Token
token
public ExpTokenManager
token_source
public final static int
EOF
public final static int
RETURN
public final static int
MIN
public final static int
MAX
public final static int
ADD
public final static int
DEL
public final static int
DEF
public final static int
COMP
public final static int
LISTCOMP
public final static int
UNARYLISTCOMP
public final static int
NUM
public final static int
VAR
public final static int
LIT
public final static int
DEFAULT
public final static Array<String>
tokenImage
-
Constructor Summary
Constructors Constructor Description Exp(ExpTokenManager tm)
Constructor with generated Token Manager. Exp(InputStream stream)
Constructor with InputStream. Exp(InputStream stream, String encoding)
Constructor with InputStream and supplied encoding Exp(Reader stream)
Constructor.
-
Method Summary
Modifier and Type Method Description final ITreeNode<out Object>
AtomicExpr()
final String
Comparator()
final ITreeNode<HashString>
Cost()
final void
disable_tracing()
Disable tracing. final ITreeNode<out Object>
E()
final void
enable_tracing()
Enable tracing. final ITreeNode<out Object>
Expr()
ParseException
generateParseException()
Generate ParseException. final Token
getNextToken()
Get the next Token. final Token
getToken(int index)
Get the specific Token. final ITree
Init()
final String
listComparator()
final ITreeNode<Set<ITreeNode<out Object>>>
ListExpr()
final OperatorTreeNode
MaxExpr()
final OperatorTreeNode
MinExpr()
final OperatorTreeNode
ModExpr()
final ITreeNode<Double>
Number()
void
ReInit(ExpTokenManager tm)
Reinitialise. void
ReInit(InputStream stream)
Reinitialise. void
ReInit(InputStream stream, String encoding)
Reinitialise. void
ReInit(Reader stream)
Reinitialise. final ITreeNode<out Object>
TimesExpr()
final String
unaryListComparator()
final ITreeNode<out Object>
Var()
-
-
Constructor Detail
-
Exp
Exp(ExpTokenManager tm)
Constructor with generated Token Manager.
-
Exp
Exp(InputStream stream)
Constructor with InputStream.
-
Exp
Exp(InputStream stream, String encoding)
Constructor with InputStream and supplied encoding
-
Exp
Exp(Reader stream)
Constructor.
-
-
Method Detail
-
AtomicExpr
final ITreeNode<out Object> AtomicExpr()
-
Comparator
final String Comparator()
-
disable_tracing
final void disable_tracing()
Disable tracing.
-
enable_tracing
final void enable_tracing()
Enable tracing.
-
generateParseException
ParseException generateParseException()
Generate ParseException.
-
getNextToken
final Token getNextToken()
Get the next Token.
-
listComparator
final String listComparator()
-
MaxExpr
final OperatorTreeNode MaxExpr()
-
MinExpr
final OperatorTreeNode MinExpr()
-
ModExpr
final OperatorTreeNode ModExpr()
-
ReInit
void ReInit(ExpTokenManager tm)
Reinitialise.
-
ReInit
void ReInit(InputStream stream)
Reinitialise.
-
ReInit
void ReInit(InputStream stream, String encoding)
Reinitialise.
-
unaryListComparator
final String unaryListComparator()
-
-
-
-