| org.antlr.test.BaseTest org.antlr.test.TestAttributes
TestAttributes | public class TestAttributes extends BaseTest (Code) | | Check the $x, $x.y attributes. For checking the actual
translation, assume the Java target. This is still a great test
for the semantics of the $x.y stuff regardless of the target.
|
TestAttributes | public TestAttributes()(Code) | | Public default constructor used by TestRig
|
test0IndexedGlobalScope | public void test0IndexedGlobalScope() throws Exception(Code) | | |
testAbsoluteIndexedGlobalScope | public void testAbsoluteIndexedGlobalScope() throws Exception(Code) | | |
testAmbiguousTokenRef | public void testAmbiguousTokenRef() throws Exception(Code) | | |
testAmbiguousTokenRefWithProp | public void testAmbiguousTokenRefWithProp() throws Exception(Code) | | |
testArgReturnValueMismatch | public void testArgReturnValueMismatch() throws Exception(Code) | | |
testArgsOnTokenInLexer | public void testArgsOnTokenInLexer() throws Exception(Code) | | |
testArgsOnTokenInLexerRuleOfCombined | public void testArgsOnTokenInLexerRuleOfCombined() throws Exception(Code) | | |
testArgsWhenNoneDefined | public void testArgsWhenNoneDefined() throws Exception(Code) | | |
testArgsWithInitValues | public void testArgsWithInitValues() throws Exception(Code) | | |
testAssignToOwnParamAttr | public void testAssignToOwnParamAttr() throws Exception(Code) | | |
testAssignToOwnRulenameAttr | public void testAssignToOwnRulenameAttr() throws Exception(Code) | | |
testAssignToTreeNodeAttribute | public void testAssignToTreeNodeAttribute() throws Exception(Code) | | |
testBasicGlobalScope | public void testBasicGlobalScope() throws Exception(Code) | | |
testCStyleReturnInitValue | public void testCStyleReturnInitValue() throws Exception(Code) | | |
testCharLabelInLexer | public void testCharLabelInLexer() throws Exception(Code) | | |
testCharListLabelInLexer | public void testCharListLabelInLexer() throws Exception(Code) | | |
testDoNotTranslateAttributeCompare | public void testDoNotTranslateAttributeCompare() throws Exception(Code) | | |
testDoNotTranslateScopeAttributeCompare | public void testDoNotTranslateScopeAttributeCompare() throws Exception(Code) | | |
testDynamicRuleScopeRefInSubrule | public void testDynamicRuleScopeRefInSubrule() throws Exception(Code) | | |
testDynamicScopeRefOkEvenThoughRuleRefExists | public void testDynamicScopeRefOkEvenThoughRuleRefExists() throws Exception(Code) | | |
testEscaped$InAction | public void testEscaped$InAction() throws Exception(Code) | | |
testEscapedLessThanInAction | public void testEscapedLessThanInAction() throws Exception(Code) | | |
testForwardRefRuleLabels | public void testForwardRefRuleLabels() throws Exception(Code) | | |
testFullyQualifiedRefToCurrentRuleParameter | public void testFullyQualifiedRefToCurrentRuleParameter() throws Exception(Code) | | |
testFullyQualifiedRefToCurrentRuleRetVal | public void testFullyQualifiedRefToCurrentRuleRetVal() throws Exception(Code) | | |
testFullyQualifiedRefToTemplateAttributeInCurrentRule | public void testFullyQualifiedRefToTemplateAttributeInCurrentRule() throws Exception(Code) | | |
testGlobalScopeOutsideRule | public void testGlobalScopeOutsideRule() throws Exception(Code) | | |
testIllegalAssignRuleRefAttr | public void testIllegalAssignRuleRefAttr() throws Exception(Code) | | |
testIllegalAssignToLocalAttr | public void testIllegalAssignToLocalAttr() throws Exception(Code) | | |
testIllegalAssignToOwnRulenameAttr | public void testIllegalAssignToOwnRulenameAttr() throws Exception(Code) | | |
testIllegalAssignTokenRefAttr | public void testIllegalAssignTokenRefAttr() throws Exception(Code) | | |
testImplicitRuleLabel | public void testImplicitRuleLabel() throws Exception(Code) | | |
testImplicitTokenLabel | public void testImplicitTokenLabel() throws Exception(Code) | | |
testIndexedGlobalScope | public void testIndexedGlobalScope() throws Exception(Code) | | |
testInvalidArguments | public void testInvalidArguments() throws Exception(Code) | | |
testInvalidReturnValues | public void testInvalidReturnValues() throws Exception(Code) | | |
testInvalidRuleAttribute | public void testInvalidRuleAttribute() throws Exception(Code) | | |
testInvalidRuleLabelAccessesParameter | public void testInvalidRuleLabelAccessesParameter() throws Exception(Code) | | |
testInvalidRuleLabelAccessesScopeAttribute | public void testInvalidRuleLabelAccessesScopeAttribute() throws Exception(Code) | | |
testIsolatedDynamicRuleScopeRef | public void testIsolatedDynamicRuleScopeRef() throws Exception(Code) | | |
testIsolatedGlobalScopeRef | public void testIsolatedGlobalScopeRef() throws Exception(Code) | | |
testIsolatedRefToCurrentRule | public void testIsolatedRefToCurrentRule() throws Exception(Code) | | |
testIsolatedRefToRule | public void testIsolatedRefToRule() throws Exception(Code) | | |
testLabelOnRuleRefInLexer | public void testLabelOnRuleRefInLexer() throws Exception(Code) | | |
testLexerRulePropertyRefs | public void testLexerRulePropertyRefs() throws Exception(Code) | | |
testListAndRuleLabelTypeMismatch | public void testListAndRuleLabelTypeMismatch() throws Exception(Code) | | |
testListAndTokenLabelTypeMismatch | public void testListAndTokenLabelTypeMismatch() throws Exception(Code) | | |
testMissingArgsInLexer | public void testMissingArgsInLexer() throws Exception(Code) | | |
testMissingArgsOnTokenInLexerRuleOfCombined | public void testMissingArgsOnTokenInLexerRuleOfCombined() throws Exception(Code) | | |
testMissingRuleAttribute | public void testMissingRuleAttribute() throws Exception(Code) | | |
testMissingUnlabeledRuleAttribute | public void testMissingUnlabeledRuleAttribute() throws Exception(Code) | | |
testMultipleReturnInitValue | public void testMultipleReturnInitValue() throws Exception(Code) | | |
testNonDynamicAttributeOutsideRule | public void testNonDynamicAttributeOutsideRule() throws Exception(Code) | | |
testNonDynamicAttributeOutsideRule2 | public void testNonDynamicAttributeOutsideRule2() throws Exception(Code) | | |
testPlusEqualSetLabel | public void testPlusEqualSetLabel() throws Exception(Code) | | |
testPlusEqualStringLabel | public void testPlusEqualStringLabel() throws Exception(Code) | | |
testPlusEqualWildcardLabel | public void testPlusEqualWildcardLabel() throws Exception(Code) | | |
testRefToReturnValueBeforeRefToPredefinedAttr | public void testRefToReturnValueBeforeRefToPredefinedAttr() throws Exception(Code) | | $x.start refs are checked during translation not before so ANTLR misses
the fact that rule r has refs to predefined attributes if the ref is after
the def of the method or self-referential. Actually would be ok if I didn't
convert actions to strings; keep as templates.
June 9, 2006: made action translation leave templates not strings
|
testRefToRuleRefInLexer | public void testRefToRuleRefInLexer() throws Exception(Code) | | |
testRefToRuleRefInLexerNoAttribute | public void testRefToRuleRefInLexerNoAttribute() throws Exception(Code) | | |
testRefToStartAttributeForCurrentRule | public void testRefToStartAttributeForCurrentRule() throws Exception(Code) | | |
testRefToTemplateAttributeForCurrentRule | public void testRefToTemplateAttributeForCurrentRule() throws Exception(Code) | | |
testRefToTextAttributeForCurrentRule | public void testRefToTextAttributeForCurrentRule() throws Exception(Code) | | |
testRefToTextAttributeForCurrentTreeRule | public void testRefToTextAttributeForCurrentTreeRule() throws Exception(Code) | | |
testReturnInitValue | public void testReturnInitValue() throws Exception(Code) | | |
testReturnValueWithNumber | public void testReturnValueWithNumber() throws Exception(Code) | | |
testReturnWithMultipleRuleRefs | public void testReturnWithMultipleRuleRefs() throws Exception(Code) | | |
testReuseExistingLabelWithImplicitRuleLabel | public void testReuseExistingLabelWithImplicitRuleLabel() throws Exception(Code) | | |
testReuseExistingLabelWithImplicitTokenLabel | public void testReuseExistingLabelWithImplicitTokenLabel() throws Exception(Code) | | |
testReuseExistingListLabelWithImplicitRuleLabel | public void testReuseExistingListLabelWithImplicitRuleLabel() throws Exception(Code) | | |
testReuseExistingListLabelWithImplicitTokenLabel | public void testReuseExistingListLabelWithImplicitTokenLabel() throws Exception(Code) | | |
testRuleAndTokenLabelTypeMismatch | public void testRuleAndTokenLabelTypeMismatch() throws Exception(Code) | | |
testRuleLabelBeforeRefToPredefinedAttr | public void testRuleLabelBeforeRefToPredefinedAttr() throws Exception(Code) | | |
testRuleLabelFromMultipleAlts | public void testRuleLabelFromMultipleAlts() throws Exception(Code) | | |
testRuleLabelOnTwoDifferentRulesAST | public void testRuleLabelOnTwoDifferentRulesAST() throws Exception(Code) | | |
testRuleLabelOnTwoDifferentRulesTemplate | public void testRuleLabelOnTwoDifferentRulesTemplate() throws Exception(Code) | | |
testRuleLabelWithoutOutputOption | public void testRuleLabelWithoutOutputOption() throws Exception(Code) | | |
testRuleLabelsWithSpecialToken | public void testRuleLabelsWithSpecialToken() throws Exception(Code) | | |
testRuleRefWhenRuleHasScope | public void testRuleRefWhenRuleHasScope() throws Exception(Code) | | |
testRuleRefWithDynamicScope | public void testRuleRefWithDynamicScope() throws Exception(Code) | | |
testRuleScopeFromAnotherRule | public void testRuleScopeFromAnotherRule() throws Exception(Code) | | |
testRuleScopeOutsideRule | public void testRuleScopeOutsideRule() throws Exception(Code) | | |
testScopeAndAttributeWithUnderscore | public void testScopeAndAttributeWithUnderscore() throws Exception(Code) | | |
testSetFullyQualifiedRefToCurrentRuleRetVal | public void testSetFullyQualifiedRefToCurrentRuleRetVal() throws Exception(Code) | | |
testSettingLexerRulePropertyRefs | public void testSettingLexerRulePropertyRefs() throws Exception(Code) | | |
testSharedGlobalScope | public void testSharedGlobalScope() throws Exception(Code) | | |
testSimplePlusEqualLabel | public void testSimplePlusEqualLabel() throws Exception(Code) | | |
testTokenLabelFromMultipleAlts | public void testTokenLabelFromMultipleAlts() throws Exception(Code) | | |
testTokenLabelTreeProperty | public void testTokenLabelTreeProperty() throws Exception(Code) | | |
testTokenRefTreeProperty | public void testTokenRefTreeProperty() throws Exception(Code) | | |
testTreeRuleStopAttributeIsInvalid | public void testTreeRuleStopAttributeIsInvalid() throws Exception(Code) | | |
testUnknownDynamicAttribute | public void testUnknownDynamicAttribute() throws Exception(Code) | | |
testUnknownGlobalDynamicAttribute | public void testUnknownGlobalDynamicAttribute() throws Exception(Code) | | |
testUnknownGlobalScope | public void testUnknownGlobalScope() throws Exception(Code) | | |
testUnqualifiedRuleScopeAccessInsideRule | public void testUnqualifiedRuleScopeAccessInsideRule() throws Exception(Code) | | |
testUnqualifiedRuleScopeAttribute | public void testUnqualifiedRuleScopeAttribute() throws Exception(Code) | | |
testWildcardCharLabelInLexer | public void testWildcardCharLabelInLexer() throws Exception(Code) | | |
testWildcardCharListLabelInLexer | public void testWildcardCharListLabelInLexer() throws Exception(Code) | | |
Methods inherited from org.antlr.test.BaseTest | protected boolean antlr(String fileName, String grammarFileName, String grammarStr, boolean debug)(Code)(Java Doc) protected boolean compile(String fileName)(Code)(Java Doc) protected void eraseFiles(String filesEndingWith)(Code)(Java Doc) protected String execParser(String grammarFileName, String grammarStr, String parserName, String lexerName, String startRuleName, String input, boolean debug)(Code)(Java Doc) protected String execTreeParser(String parserGrammarFileName, String parserGrammarStr, String parserName, String treeParserGrammarFileName, String treeParserGrammarStr, String treeParserName, String lexerName, String parserStartRuleName, String treeParserStartRuleName, String input)(Code)(Java Doc) protected String execTreeParser(String parserGrammarFileName, String parserGrammarStr, String parserName, String treeParserGrammarFileName, String treeParserGrammarStr, String treeParserName, String lexerName, String parserStartRuleName, String treeParserStartRuleName, String input, boolean debug)(Code)(Java Doc) public String getFirstLineOfException()(Code)(Java Doc) protected void mkdir(String dir)(Code)(Java Doc) protected Tool newTool()(Code)(Java Doc) protected String rawExecRecognizer(String parserName, String treeParserName, String lexerName, String parserStartRuleName, String treeParserStartRuleName, boolean parserBuildsTrees, boolean parserBuildsTemplate, boolean debug)(Code)(Java Doc) protected boolean rawGenerateAndBuildRecognizer(String grammarFileName, String grammarStr, String parserName, String lexerName, boolean debug)(Code)(Java Doc) protected void writeFile(String dir, String fileName, String content)(Code)(Java Doc) protected void writeTemplateTestFile(String parserName, String lexerName, String parserStartRuleName, boolean debug)(Code)(Java Doc) protected void writeTestFile(String parserName, String lexerName, String parserStartRuleName, boolean debug)(Code)(Java Doc) protected void writeTreeTestFile(String parserName, String treeParserName, String lexerName, String parserStartRuleName, String treeParserStartRuleName, boolean debug)(Code)(Java Doc)
|
|
|