Uses of Class
edu.wisc.game.parser.Token
| Package | Description |
|---|---|
| edu.wisc.game.parser |
Tools for parsing rule set descriptions
|
-
Uses of Token in edu.wisc.game.parser
Methods in edu.wisc.game.parser that return types with arguments of type Token Modifier and Type Method Description static Vector<Token>Token. tokenize(String x)Method parameters in edu.wisc.game.parser with type arguments of type Token Modifier and Type Method Description static Expression.BracketListExpression. mkBracketList(Vector<Token> tokens)static ExpressionExpression. mkCounterOrAtom(Vector<Token> tokens)Extracts one of the sections of a rule line: either the leading counter (int or star), or one of the atoms (paren lists that may include arithmetic expressions or stars)static Expression.ArithmeticExpressionExpression. mkLongestArithmeticExpression(Vector<Token> tokens)Creates the longest ArithmeticExpression starting at the beginning of the tokens array.static Expression.ArithmeticExpressionExpression. mkLongestE1(Vector<Token> tokens)E1 := (E) | Id.Id | Id | Num | -Num | [E,E,...]static Expression.ArithmeticExpressionExpression. mkLongestE2(Vector<Token> tokens)E2 := E1 | !E2static Expression.ArithmeticExpressionExpression. mkLongestE3(Vector<Token> tokens)E3 := E2 | E2*E2...static Expression.ArithmeticExpressionExpression. mkLongestE4(Vector<Token> tokens)static Expression.ArithmeticExpressionExpression. mkLongestE5(Vector<Token> tokens)static Expression.RangeExpressionExpression. mkRangeExpression(Vector<Token> tokens)If the given sequence of tokens starts with a range expression, extracts it; otherwise, returns nullstatic StringToken. toString(Vector<Token> tokens)