Browse Source

Misleading error message at unexpected EOF (Issue #220)

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.6.5
Erez Shinan 6 years ago
parent
commit
9ce8a79dc0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      lark/parsers/lalr_parser.py

+ 1
- 0
lark/parsers/lalr_parser.py View File

@@ -78,6 +78,7 @@ class _Parser:
else: else:
reduce(arg) reduce(arg)


token = '<EOF>'
while True: while True:
_action, arg = get_action('$END') _action, arg = get_action('$END')
if _action is Shift: if _action is Shift:


Loading…
Cancel
Save