Home
last modified time | relevance | path

Searched refs:isLexicalRule (Results 1 – 4 of 4) sorted by relevance

/external/antlr/gunit/src/main/java/org/antlr/gunit/
DgUnitTestSuite.java38 protected boolean isLexicalRule = false; field in gUnitTestSuite
59 …tLexicalRuleName(String lexicalRule) { this.lexicalRule = lexicalRule; this.isLexicalRule = true; } in setLexicalRuleName()
65 public boolean isLexicalRule() { return this.isLexicalRule; } in isLexicalRule() method in gUnitTestSuite
DJUnitCodeGen.java209 if ( ts.isLexicalRule() ) testRuleName = ts.getLexicalRuleName(); in genParserMethods()
213 testRuleMethodST.setAttribute("isLexicalRule", ts.isLexicalRule()); in genParserMethods()
/external/antlr/gunit/src/main/antlr3/org/antlr/gunit/
DgUnit.g97 boolean isLexicalRule;
101 $testsuite::isLexicalRule = false;
112 $testsuite::isLexicalRule = true;
155 | 'returns' RETVAL {if ( !$testsuite::isLexicalRule ) $out = new ReturnTest($RETVAL);}
156 | '->' output {if ( !$testsuite::isLexicalRule ) $out = new OutputTest($output.token);}
/external/antlr/gunit/src/main/resources/org/antlr/gunit/
Djunit.stg67 testRuleMethod(isLexicalRule,methodName,testRuleName,test,tokenType,expecting) ::= <<
70 …Object retval = <if(isLexicalRule)>execLexer<else>execParser<endif>(<testRuleName>, <test.line>, "…