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:
parent
938f0e5c69
commit
d7a6891519
6 changed files with 273 additions and 92 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue