Uses of Class
edu.wisc.game.parser.Token
Packages that use Token
-
Uses of Token in edu.wisc.game.parser
Methods in edu.wisc.game.parser that return types with arguments of type TokenMethod parameters in edu.wisc.game.parser with type arguments of type TokenModifier and TypeMethodDescriptionstatic Expression.BracketList
Expression.mkBracketList
(Vector<Token> tokens) static Expression
Expression.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)Expression.mkLongestArithmeticExpression
(Vector<Token> tokens) Creates the longest ArithmeticExpression starting at the beginning of the tokens array.Expression.mkLongestE1
(Vector<Token> tokens) E1 := (E) | Id.Id | Id | Num | -Num | [E,E,...]Expression.mkLongestE2
(Vector<Token> tokens) E2 := E1 | !E2Expression.mkLongestE3
(Vector<Token> tokens) E3 := E2 | E2*E2...Expression.mkLongestE4
(Vector<Token> tokens) Expression.mkLongestE5
(Vector<Token> tokens) static Expression.RangeExpression
Expression.mkRangeExpression
(Vector<Token> tokens) If the given sequence of tokens starts with a range expression, extracts it; otherwise, returns nullstatic String