Grammar rules for Fountain
Opened this issue · 3 comments
jjzazuet commented
Hi. I'd like to create Abstract Syntax Trees out of Fountain documents.
Is there a grammar spec or a reference compatibility document (kind of like a TCK) so that I can know that I'm parsing documents correctly?
Thanks!
nyousefi commented
The Fountain syntax spec is at http://fountain.io/syntax, and this repo has a set a tests along with test files you can use. It's not great, but it might be sufficient for what you're trying to do.
Deleted user commented
How about a BNF grammar ?