Skip to content

Question: How to create a recursive grouping parser #201

Answered by alecthomas
aacebedo asked this question in Q&A
Discussion options

You must be logged in to vote

Hello!

I'm glad you're enjoying Participle :)

I suspect part of the confusion is due to your use of a stateful lexer. You almost certainly don't need one for this grammar, a basic lexer and parser can handle this.

Have you checked out the _examples folder? The expr and expr2 folders in particular would be good places to start.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by aacebedo
Comment options

You must be logged in to vote
1 reply
@aacebedo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #200 on November 14, 2021 20:41.