diff --git a/examples/advanced/dynamic_complete.py b/examples/advanced/dynamic_complete.py index 0458a9e..48d5048 100644 --- a/examples/advanced/dynamic_complete.py +++ b/examples/advanced/dynamic_complete.py @@ -9,10 +9,10 @@ When using ``parser='earley'`` and ``lexer='dynamic_complete'``, Lark will be ab parse just about anything as long as there is a valid way to generate it from the Grammar, including looking 'into' the Regexes. -This examples shows how to parse a json input where are quotes have been +This examples shows how to parse a json input where the quotes have been replaced by underscores: ``{_foo_:{}, _bar_: [], _baz_: __}`` Notice that underscores might still appear inside strings, so a potentially -valid reading of the above might in normal json be: +valid reading of the above is: ``{"foo_:{}, _bar": [], "baz": ""}`` """ from pprint import pprint @@ -53,15 +53,56 @@ _STRING_ESC_INNER: _STRING_INNER /(?