Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formal Grammar Discussion #48

Open
ExeVirus opened this issue Mar 7, 2024 · 2 comments
Open

Formal Grammar Discussion #48

ExeVirus opened this issue Mar 7, 2024 · 2 comments

Comments

@ExeVirus
Copy link

ExeVirus commented Mar 7, 2024

Hello JGM,

I have been learning about formal grammars (PEG and friends), and have been diving more deeply into them. I want to tackle the problem of PEG grammars for common file specifications, like CommonMark (hard), JSON (easy), XML (easy), etc., and wanted to ask about your two implementations here and in lunamark.

I see in https://talk.commonmark.org/t/commonmark-formal-grammar/46/32, you are unhappy with either of these grammars, and I was wondering if you could point me to why/where are the 'rough edges'. I know it's been a while since you've tackled the subject, but maybe you can point me in the right directions / provide background on what was particularly hard. Feel free to resurrect this if it's like 17 years from now you see the issue.

Note: I have used your Lunamark implementation and adapted it to pure Lua 5.X, but to unsatisfactory results due to the lulpeg replacement, no big deal there, just learning for now.

@jgm
Copy link
Owner

jgm commented Mar 7, 2024

I'm sorry, it has been so long that I honestly don't remember!

@ExeVirus
Copy link
Author

ExeVirus commented Mar 8, 2024

No worries, I'll share back if I ever make a great commonMark PEG parser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants