TekuConcept

Results 7 comments of TekuConcept

@seamanm libjsoncpp is part of the webrtc build dependencies. You automatically download it when you run the following commands: ``` fetch --nohooks webrtc cd src git checkout branch-heads/72 gclient sync...

One recommendation I would make is to not end (or begin) your definitions with "whitespace" pattern matches. This way you avoid parser ambiguities. Change: ``` statements -> statement %NL {%...

This is by design. Each character is being treated as its own "token," so you basically have an array of matching tokens in sequence. To concat these tokens into a...

> significant whitespace As in multiple contiguous whitespace characters? ``` OMS -> [\s]:* # optional multi-line whitespace RMS -> [\s]:+ # required multi-line whitespace ```

> as in scopes delimited by indented sections of text (al a pug python haskell, etc.) Ah, so indent / dedent... that will be a context-aware parsing solution. ## Use...

`:?` - "appearing zero or one times"

Do the following: ```js const parser = new nearley.Parser(nearley.Grammar.fromCompiled(grammar)) const initialState = parser.save() ... parser.feed(value) // do something with the parsed result parser.restore(initialState) // restore (or reset) parser to its...