Antlr3.Tool.Grammar.CreateLookaheadDFAs C# (CSharp) Method

CreateLookaheadDFAs() public method

public CreateLookaheadDFAs ( ) : void
return void
        public virtual void CreateLookaheadDFAs()
        {
            CreateLookaheadDFAs( true );
        }

Same methods

Grammar::CreateLookaheadDFAs ( bool wackTempStructures ) : void

Usage Example

 public void TestSimpleRangeVersusChar()
 {
     Grammar g = new Grammar(
         "lexer grammar t;\n" +
         "A : 'a'..'z' '@' | 'k' '$' ;" );
     g.CreateLookaheadDFAs();
     string expecting =
         ".s0-'k'->.s1" + NewLine +
         ".s0-{'a'..'j', 'l'..'z'}->:s2=>1" + NewLine +
         ".s1-'$'->:s3=>2" + NewLine +
         ".s1-'@'->:s2=>1" + NewLine;
     checkDecision( g, 1, expecting, null );
 }
All Usage Examples Of Antlr3.Tool.Grammar::CreateLookaheadDFAs
Grammar