pycontextfree icon indicating copy to clipboard operation
pycontextfree copied to clipboard

Context Free Grammar ?

Open stuaxo opened this issue 2 years ago • 4 comments

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.

stuaxo avatar Feb 07 '23 14:02 stuaxo

you mean parsing files from original "contextfree" tool? that would be interesting

undertherain avatar Feb 08 '23 03:02 undertherain

Yeah.

I think it could output an AST that calls your code.

stuaxo avatar Feb 08 '23 10:02 stuaxo

(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.

stuaxo avatar Feb 08 '23 10:02 stuaxo

One thing I'm not quite sure about is what a good libraries is to parse the syntax with.

stuaxo avatar Feb 08 '23 10:02 stuaxo