Skip to content

Commit 8edfcf3

Browse files
authored
Fix number_of_states assign error
1 parent 6c83ee5 commit 8edfcf3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ParserGenerator.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,6 @@ public void GenerateLALR()
646646
goto_table.Add(new Tuple<int, List<Tuple<int, int>>> (p, index_list));
647647
}
648648

649-
number_of_states = states.Count;
650649
#if false
651650
foreach (var s in states)
652651
print_states(s.Key, s.Value);
@@ -791,6 +790,8 @@ public void GenerateLALR()
791790
}
792791
}
793792
// -----------------------------------------------------
793+
794+
number_of_states = states.Count;
794795
}
795796
#endregion
796797

0 commit comments

Comments
 (0)