Browse Source

Use accepts in default example (even though it's not necessary)

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.10.0
Erez Sh 4 years ago
parent
commit
00e736fda3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      examples/error_reporting_lalr.py

+ 1
- 1
examples/error_reporting_lalr.py View File

@@ -52,7 +52,7 @@ def parse(json_text):
'[1,2,]',
'{"foo":1,}',
'{"foo":false,"bar":true,}']
})
}, use_accepts=True)
if not exc_class:
raise
raise exc_class(u.get_context(json_text), u.line, u.column)


Loading…
Cancel
Save