We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09ab890 commit 4a59c87Copy full SHA for 4a59c87
tests/test_frontend.py
@@ -22,4 +22,14 @@ def test_build_tables():
22
assert "lookup_table" in p.build(start).c
23
24
25
-
+def test_pausing():
26
+ # Ensure frotentend LoopChecker does not mark off against Pausing
27
+ p = LLParse("lltest")
28
+ s = p.node('start')
29
+ s2 = p.node('start2')
30
+ s.match('p', p.pause(1, 'parser was asked to pause').otherwise(s2)).skipTo(s)
31
+ s2.match('p', p.pause(2, 'parser was asked to pause again').otherwise(s)).skipTo(s2)
32
+
33
+ p.build(s)
34
35
0 commit comments