Package edu.wisc.game.parser
package edu.wisc.game.parser
Tools for parsing rule set descriptions
Software Copyright University Wisconsin-Madison, under Apache License, Version 2.0
-
ClassDescriptionAn arithmetic expression is composed of variables, constants, and arithmetic operations; parentheses can be used for ordering operations.Id:ArithmeticExpression; used in GS 3Has exactly two operands, and the operator is one of '==', '!=', 'invalid input: '<'=', '>', etcCan be overridden as neededA variable.A Mapper is something that can take a variable (Expression.Id) and produce another Expression (e.g.A HashMap storing a set of values of a given type T for each key!E evaluates to [1] if E is an empty set, or to [] otherwiseA numeric constantValues are String or IntegerA.B[Num..Num]Additive or multiplicativeA Star expression is simply "*".Objects in question may be Integer, String, or PropMap (ImageObject or equivalent)A token represents an element of the input text.