org.antlr.test
Class TestCharDFAConversion

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.antlr.test.BaseTest
              extended by org.antlr.test.TestCharDFAConversion
All Implemented Interfaces:
junit.framework.Test

public class TestCharDFAConversion
extends BaseTest


Nested Class Summary
 
Nested classes/interfaces inherited from class org.antlr.test.BaseTest
BaseTest.StreamVacuum
 
Field Summary
 
Fields inherited from class org.antlr.test.BaseTest
CLASSPATH, jikes, pathSep, stderr, tmpdir
 
Constructor Summary
TestCharDFAConversion()
          Public default constructor used by TestRig
 
Method Summary
 void _template()
           
protected  void checkDecision(Grammar g, int decision, java.lang.String expecting, int[] expectingUnreachableAlts)
           
 void testAdjacentNotCharLoops()
           
 void testAltConflictsWithLoopThenExit()
           
 void testDisjointSetCollidingWithTwoRanges()
           
 void testDisjointSetCollidingWithTwoRangesAsSeparateAlts()
           
 void testDisjointSetCollidingWithTwoRangesCharsFirst()
           
 void testIdenticalRules()
           
 void testKeywordVersusID()
           
 void testLoopsWithOptimizedOutExitBranches()
           
 void testNonAdjacentNotCharLoops()
           
 void testNonGreedy()
           
 void testNonGreedyByDefaultWildcardPlus()
           
 void testNonGreedyByDefaultWildcardPlusWithParens()
           
 void testNonGreedyByDefaultWildcardStar()
           
 void testNonGreedyLoopThatNeverLoops()
           
 void testNonGreedyWildcardPlus()
           
 void testNonGreedyWildcardStar()
           
 void testNonWildcardEOTMakesItWorkWithoutNonGreedyOption()
           
 void testNonWildcardNonGreedy()
           
 void testNotComplicatedSetRuleInLexer()
           
 void testNotFragmentInLexer()
           
 void testNotSetFragmentInLexer()
           
 void testNotSetWithRuleInLexer()
           
 void testNotTokenInLexer()
           
 void testRangeWithDisjointSet()
           
 void testRecursive()
           
 void testRecursive2()
           
 void testSetCallsRuleWithNot()
           
 void testSimpleRangeVersusChar()
           
 void testSynPredInLexer()
           
 
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
 

Constructor Detail

TestCharDFAConversion

public TestCharDFAConversion()
Public default constructor used by TestRig

Method Detail

testSimpleRangeVersusChar

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

testRangeWithDisjointSet

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

testDisjointSetCollidingWithTwoRanges

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

testDisjointSetCollidingWithTwoRangesCharsFirst

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

testDisjointSetCollidingWithTwoRangesAsSeparateAlts

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

testKeywordVersusID

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

testIdenticalRules

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

testAdjacentNotCharLoops

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

testNonAdjacentNotCharLoops

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

testLoopsWithOptimizedOutExitBranches

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

testNonGreedy

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

testNonGreedyWildcardStar

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

testNonGreedyByDefaultWildcardStar

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

testNonGreedyWildcardPlus

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

testNonGreedyByDefaultWildcardPlus

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

testNonGreedyByDefaultWildcardPlusWithParens

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

testNonWildcardNonGreedy

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

testNonWildcardEOTMakesItWorkWithoutNonGreedyOption

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

testAltConflictsWithLoopThenExit

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

testNonGreedyLoopThatNeverLoops

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

testRecursive

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

testRecursive2

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

testNotFragmentInLexer

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

testNotSetFragmentInLexer

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

testNotTokenInLexer

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

testNotComplicatedSetRuleInLexer

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

testNotSetWithRuleInLexer

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

testSetCallsRuleWithNot

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

testSynPredInLexer

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

_template

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

checkDecision

protected void checkDecision(Grammar g,
                             int decision,
                             java.lang.String expecting,
                             int[] expectingUnreachableAlts)
                      throws java.lang.Exception
Throws:
java.lang.Exception