Open stuaxo opened 1 year ago
you mean parsing files from original "contextfree" tool? that would be interesting
Yeah.
I think it could output an AST that calls your code.
(Well - or calls any code) - originally I was thinking about how that could integrate with https://github.com/shoebot/shoebot but that's a couple more steps abstracted.
One thing I'm not quite sure about is what a good libraries is to parse the syntax with.
I wonder if anyone has made a parser for the contextfree grammar itself ?
I guess it could be parsed to an AST, that calls this API and then generate pictures, this would be interesting for integrating CF with python.