Class ModifiedParserTest.SuffixArrayAccessShuntingYard

java.lang.Object
com.singularsys.jep.configurableparser.ShuntingYard
com.singularsys.jeptests.system.ModifiedParserTest.SuffixArrayAccessShuntingYard
All Implemented Interfaces:
GrammarParser
Enclosing class:
ModifiedParserTest

public static class ModifiedParserTest.SuffixArrayAccessShuntingYard extends ShuntingYard
A subclass of the ShuntingYard which can parse various forms of list element access. So seq(2,5)[3] [5,6,7][2] and ([1,2]+[3,4])[2] are all possible.

If works by overriding the ShuntingYard.prefixSuffix() method to treat array access as a general suffix operator which can be applied to all prefix expressions.