Resources for Peggy Grammar #230
Replies: 2 comments 4 replies
-
Thank you a lot for asking, even if I don't understand the question really. What exactly is on interest to you:
So I will collect some of the resources (I have used), that are not directly obvious when you look at Peggy. If you can be more specific with your question, that would help a lot. The grammar has been grown over time, and each change had a reason for it. This gives you a view on the changes of the grammar file. So depending which part is interesting, I could dig a little bit deeper into it. Btw, should that discussion not moved over to pgn-parser instead? The PgnViewerJS is just a client using the pgn-parser, which defines the grammar. |
Beta Was this translation helpful? Give feedback.
-
I wanted to understand the syntax of the .pegjs files and some more examples to understand the different rules and usecases. Saying this, I wanted to understand:
Also, yes, I shall move this discussion to pgn-parser |
Beta Was this translation helpful? Give feedback.
-
Hi @mliebelt,
Been trying to understand the Grammar file you had created for chess for a deeper understanding. Would be great if you could share some resources regarding Parsing Expression Grammar (PEG)... 😅
Would appreciate it a lot if others can share resources as well.... as I'm unable to find ample documentations and examples for the same. Apart from the Peggy Documentation
Beta Was this translation helpful? Give feedback.
All reactions