| fri.patterns.interpreter.parsergenerator.Semantic
All known Subclasses: fri.patterns.interpreter.parsergenerator.semantics.ReflectSemantic, fri.patterns.interpreter.parsergenerator.semantics.PrintSemantic, fri.patterns.interpreter.parsergenerator.syntax.builder.SyntaxBuilderSemantic, fri.patterns.interpreter.parsergenerator.semantics.TreeBuilderSemantic,
doSemantic | public Object doSemantic(Rule rule, List parseResults, List resultRanges)(Code) | | Called by every REDUCE step. Passes the evaluated Rule and the corresponding parsing results.
Parameters: rule - Rule that was "reduced" (recognized). Parameters: parseResults - all semantic call returns from underlying rules, collected according to current rule,that means you get a List of Objects as long as the count of symbols on the right side of the rule,every Object is a return of an underlying doSemantic() call. Parameters: resultRanges - all line ranges for parseResults elements. Cast elements to Token.Rangeto get the start and end position of every Object in parseResult List. some result to be pushed on value stack by the Parser, or null. |
|
|