|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fri.patterns.interpreter.parsergenerator.semantics.PrintSemantic
Simple test semantic that outputs the rule nonterminal on left side and its parsed values.
Constructor Summary | |
PrintSemantic()
|
Method Summary | |
java.lang.Object |
doSemantic(Rule rule,
java.util.List inputTokens,
java.util.List ranges)
Called by every REDUCE step. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PrintSemantic()
Method Detail |
public java.lang.Object doSemantic(Rule rule, java.util.List inputTokens, java.util.List ranges)
Semantic
doSemantic
in interface Semantic
rule
- Rule that was "reduced" (recognized).inputTokens
- 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.ranges
- all line ranges for parseResults elements. Cast elements to Token.Range
to get the start and end position of every Object in parseResult List.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |