Finish annotating test grammar, forced breaks, fixes

Forced breaks force a newline in a spot, which is sometimes what we
want. (Like, this syntax should *never* be on a single line.)
This commit is contained in:
John Doty 2024-09-13 11:57:16 -07:00
parent 938f0e5c69
commit d7a6891519
6 changed files with 273 additions and 92 deletions

View file

@ -359,7 +359,7 @@ def test_lexer_compile():
def foo(self):
return self.IS
start = foo
start = "foo"
IS = Terminal("is")
AS = Terminal("as")
@ -392,7 +392,7 @@ def test_lexer_numbers(n: float):
def number(self):
return self.NUMBER
start = number
start = "number"
NUMBER = Terminal(
Re.seq(