Pliant icon indicating copy to clipboard operation
Pliant copied to clipboard

Instructions on transferring code from other parsers

Open ArsenShnurkov opened this issue 8 years ago • 4 comments

It would be good to parse grammars of other parsers as is (using their grammars).

GOLD parser in particular. AntlrCS and gppg are 2 other tools.

ArsenShnurkov avatar Oct 24 '17 13:10 ArsenShnurkov

Do you have links to the grammar definitions for these languages?

Here is what I found based on brief googling:

Gold Parser Language

Productions Terminals Character Sets

Antlr

Grammar

gppg & GPLEX

canonical source appears to be codeplex which is depricated

gppg

GitHub Mirror by Oleg1cqa GitHub Mirror by deAtog

gplex

Github Mirror by deAtog

Tagging with help wanted, as this is an easy contribution for someone to make via pull request. The Ebnf namespace (soon do be renamed Dsl) is pretty much the exact code needed to perform this for each parser generator.

patrickhuber avatar Oct 25 '17 19:10 patrickhuber

  1. Antlrcs = Antlr3, not Antlr4

  2. i packaged https://github.com/dbremner/gppg https://github.com/dbremner/gplex (don't remember why this mirror, but it was fixed a bit) gppg/gplex have very good documentation pdf files

ArsenShnurkov avatar Oct 25 '17 23:10 ArsenShnurkov

Ok, will this grammar do for antlrcs? https://github.com/antlr/grammars-v3/blob/master/Antlrv3/ANTLRv3.g

patrickhuber avatar Oct 26 '17 02:10 patrickhuber

https://github.com/antlr/antlrcs/blob/master/Antlr3/Grammars/ANTLR.g3

ArsenShnurkov avatar Oct 26 '17 03:10 ArsenShnurkov