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

Replacing regexes with a formal Parsing Expression Grammar (PEG)? #53

Open
bjmc opened this issue Mar 21, 2024 · 0 comments
Open

Replacing regexes with a formal Parsing Expression Grammar (PEG)? #53

bjmc opened this issue Mar 21, 2024 · 0 comments

Comments

@bjmc
Copy link

bjmc commented Mar 21, 2024

Hello, I think Fountain is a really interesting project! As an exercise to learn about Parsing Expression Grammar, I've been trying to write up a formal PEG specification for the Fountain format.

This is very much still a work in progress, but I have a PEST grammar for Fountain defined here that I believe satisfies all the test cases in this repo.

I realize this is kind of presumptuous, but how would you feel about adopting/collaborating on an "official" PEG specification for the Fountain format? I think having one formal definition as an implementation-agnostic specification would be cleaner than a series of regular expressions in Objective C code.

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

1 participant