@@ -932,7 +932,7 @@ private static void AddExponentExtension(DoubleExponent token, LexemeAttribute l
932
932
var fsmBuilder = lexer . FSMBuilder ;
933
933
934
934
935
- fsmBuilder . GoTo ( GenericLexer < DoubleExponent > . in_double ) // start a in_double node
935
+ fsmBuilder . GoTo ( GenericLexer < DoubleExponent > . in_double ) // start an in_double node
936
936
. Transition ( new char [ ] { 'E' , 'e' } ) // add a transition on '.' with precondition
937
937
. Transition ( new char [ ] { '+' , '-' } )
938
938
. Mark ( "start_exponent_val" )
@@ -1158,15 +1158,15 @@ public static void TestIndentedParserNeverEnding()
1158
1158
Assert . True ( parserRes . IsOk ) ;
1159
1159
var parser = parserRes . Result ;
1160
1160
Assert . NotNull ( parser ) ;
1161
- parser . SyntaxParseCallback = node =>
1162
- {
1163
- GraphVizEBNFSyntaxTreeVisitor < IndentedLangLexer > grapher =
1164
- new GraphVizEBNFSyntaxTreeVisitor < IndentedLangLexer > ( ) ;
1165
- var root = grapher . VisitTree ( node ) ;
1166
- var graph = grapher . Graph . Compile ( ) ;
1167
- // File.WriteAllText(@"c:\tmp\graph.dot", graph);
1168
- } ;
1161
+
1169
1162
var parseResult = parser . Parse ( source ) ;
1163
+
1164
+ GraphVizEBNFSyntaxTreeVisitor < IndentedLangLexer > grapher =
1165
+ new GraphVizEBNFSyntaxTreeVisitor < IndentedLangLexer > ( ) ;
1166
+ grapher . VisitTree ( parseResult . SyntaxTree ) ;
1167
+ var graph = grapher . Graph . Compile ( ) ;
1168
+ //File.WriteAllText(@"c:\tmp\graph.dot", graph);
1169
+
1170
1170
Assert . True ( parseResult . IsOk ) ;
1171
1171
var ast = parseResult . Result ;
1172
1172
indented . Block root = ast as indented . Block ;
0 commit comments