org.antlr.test
Class TestAutoAST

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.antlr.test.BaseTest
              extended by org.antlr.test.TestAutoAST
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
DebugTestAutoAST

public class TestAutoAST
extends BaseTest


Nested Class Summary
 
Nested classes/interfaces inherited from class org.antlr.test.BaseTest
BaseTest.StreamVacuum
 
Field Summary
protected  boolean debug
           
 
Fields inherited from class org.antlr.test.BaseTest
CLASSPATH, jikes, pathSep, stderr, tmpdir
 
Constructor Summary
TestAutoAST()
           
 
Method Summary
 void _test()
           
 void testBang()
           
 void testComplicatedMelange()
           
 void testExtraTokenGivesErrorNode()
           
 void testExtraTokenInSimpleDecl()
           
 void testInvokeRule()
           
 void testInvokeRuleAsRoot()
           
 void testInvokeRuleAsRootWithLabel()
           
 void testInvokeRuleAsRootWithListLabel()
           
 void testLabeledStringRoot()
           
 void testMissingFirstTokenGivesErrorNode()
           
 void testMissingFirstTokenGivesErrorNode2()
           
 void testMissingIDInSimpleDecl()
           
 void testMissingSetInSimpleDecl()
           
 void testMissingTokenGivesErrorNode()
           
 void testMissingTokenGivesErrorNodeInInvokedRule()
           
 void testNestedSubrule()
           
 void testNotSet()
           
 void testNotSetRoot()
           
 void testNotSetRootWithLabel()
           
 void testNotSetRootWithListLabel()
           
 void testNotSetRuleRootInLoop()
           
 void testNotSetWithLabel()
           
 void testNotSetWithListLabel()
           
 void testNoViableAltGivesErrorNode()
           
 void testOptionalThenRoot()
           
 void testReturnValueWithAST()
           
 void testRootRoot()
           
 void testRootRoot2()
           
 void testRootThenRootInLoop()
           
 void testRuleInvocationRuleRootInLoop()
           
 void testRuleListLabel()
           
 void testRuleListLabelBang()
           
 void testRuleListLabelRuleRoot()
           
 void testRuleRootInLoop()
           
 void testSet()
           
 void testSetAsRuleRootInLoop()
           
 void testSetLoop()
           
 void testSetRoot()
           
 void testSetRootWithLabel()
           
 void testSimpleRootAtOuterLevel()
           
 void testSimpleRootAtOuterLevelReverse()
           
 void testTailRecursion()
           
 void testTokenLabelReuse()
           
 void testTokenLabelReuse2()
           
 void testTokenList()
           
 void testTokenListInSingleAltBlock()
           
 void testTokenListLabelBang()
           
 void testTokenListLabelReuse()
           
 void testTokenListLabelReuse2()
           
 void testTokenListLabelRuleRoot()
           
 void testWildcard()
           
 void testWildcardRoot()
           
 void testWildcardRootWithLabel()
           
 void testWildcardRootWithListLabel()
           
 
Methods inherited from class org.antlr.test.BaseTest
antlr, checkGrammarSemanticsError, checkGrammarSemanticsWarning, compile, eraseFiles, execLexer, execParser, execTreeParser, execTreeParser, getFirstLineOfException, mkdir, newTool, newTool, rawExecRecognizer, rawGenerateAndBuildRecognizer, realElements, realElements, setUp, writeFile, writeLexerTestFile, writeTemplateTestFile, writeTestFile, writeTreeAndTreeTestFile, writeTreeTestFile
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

debug

protected boolean debug
Constructor Detail

TestAutoAST

public TestAutoAST()
Method Detail

testTokenList

public void testTokenList()
                   throws java.lang.Exception
Throws:
java.lang.Exception

testTokenListInSingleAltBlock

public void testTokenListInSingleAltBlock()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testSimpleRootAtOuterLevel

public void testSimpleRootAtOuterLevel()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testSimpleRootAtOuterLevelReverse

public void testSimpleRootAtOuterLevelReverse()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testBang

public void testBang()
              throws java.lang.Exception
Throws:
java.lang.Exception

testOptionalThenRoot

public void testOptionalThenRoot()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testLabeledStringRoot

public void testLabeledStringRoot()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testWildcard

public void testWildcard()
                  throws java.lang.Exception
Throws:
java.lang.Exception

testWildcardRoot

public void testWildcardRoot()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testWildcardRootWithLabel

public void testWildcardRootWithLabel()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testWildcardRootWithListLabel

public void testWildcardRootWithListLabel()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testRootRoot

public void testRootRoot()
                  throws java.lang.Exception
Throws:
java.lang.Exception

testRootRoot2

public void testRootRoot2()
                   throws java.lang.Exception
Throws:
java.lang.Exception

testRootThenRootInLoop

public void testRootThenRootInLoop()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testNestedSubrule

public void testNestedSubrule()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testInvokeRule

public void testInvokeRule()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testInvokeRuleAsRoot

public void testInvokeRuleAsRoot()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testInvokeRuleAsRootWithLabel

public void testInvokeRuleAsRootWithLabel()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testInvokeRuleAsRootWithListLabel

public void testInvokeRuleAsRootWithListLabel()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testRuleRootInLoop

public void testRuleRootInLoop()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testRuleInvocationRuleRootInLoop

public void testRuleInvocationRuleRootInLoop()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

testTailRecursion

public void testTailRecursion()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testSet

public void testSet()
             throws java.lang.Exception
Throws:
java.lang.Exception

testSetRoot

public void testSetRoot()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testSetRootWithLabel

public void testSetRootWithLabel()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testSetAsRuleRootInLoop

public void testSetAsRuleRootInLoop()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testNotSet

public void testNotSet()
                throws java.lang.Exception
Throws:
java.lang.Exception

testNotSetWithLabel

public void testNotSetWithLabel()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testNotSetWithListLabel

public void testNotSetWithListLabel()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testNotSetRoot

public void testNotSetRoot()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testNotSetRootWithLabel

public void testNotSetRootWithLabel()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testNotSetRootWithListLabel

public void testNotSetRootWithListLabel()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testNotSetRuleRootInLoop

public void testNotSetRuleRootInLoop()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testTokenLabelReuse

public void testTokenLabelReuse()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testTokenLabelReuse2

public void testTokenLabelReuse2()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testTokenListLabelReuse

public void testTokenListLabelReuse()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testTokenListLabelReuse2

public void testTokenListLabelReuse2()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testTokenListLabelRuleRoot

public void testTokenListLabelRuleRoot()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testTokenListLabelBang

public void testTokenListLabelBang()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testRuleListLabel

public void testRuleListLabel()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testRuleListLabelRuleRoot

public void testRuleListLabelRuleRoot()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testRuleListLabelBang

public void testRuleListLabelBang()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testComplicatedMelange

public void testComplicatedMelange()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testReturnValueWithAST

public void testReturnValueWithAST()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testSetLoop

public void testSetLoop()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testExtraTokenInSimpleDecl

public void testExtraTokenInSimpleDecl()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testMissingIDInSimpleDecl

public void testMissingIDInSimpleDecl()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testMissingSetInSimpleDecl

public void testMissingSetInSimpleDecl()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testMissingTokenGivesErrorNode

public void testMissingTokenGivesErrorNode()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testMissingTokenGivesErrorNodeInInvokedRule

public void testMissingTokenGivesErrorNodeInInvokedRule()
                                                 throws java.lang.Exception
Throws:
java.lang.Exception

testExtraTokenGivesErrorNode

public void testExtraTokenGivesErrorNode()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testMissingFirstTokenGivesErrorNode

public void testMissingFirstTokenGivesErrorNode()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

testMissingFirstTokenGivesErrorNode2

public void testMissingFirstTokenGivesErrorNode2()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

testNoViableAltGivesErrorNode

public void testNoViableAltGivesErrorNode()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

_test

public void _test()
           throws java.lang.Exception
Throws:
java.lang.Exception