Replies: 1 comment
|
My preference is with a parser combinator. Among the reasons for this are
Where parser combinators, allow to express the grammar in code, for which
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
At the moment the Walnut REPL and the expression language are parsed in a brittle way. It is hard to learn the syntax and the semantic of the language when working with the code, they are intertwined.
A more robust, and better maintainable way, is to parse the language with a proper parser.
There are different variant to construct a parser. For example
In this discussion I would like to tabulate pros and cons for these and other options before making the effort to create a Walnut parser.
All reactions