antlr / grammars-v4

Grammars written for ANTLR v4; expectation that the grammars are free of actions.
MIT License
10.12k stars 3.69k forks source link

VHDL version update #1645

Open Garreye opened 4 years ago

Garreye commented 4 years ago

I'm looking at parsing a VHDL design, but I'm using VHDL-2008 fairly extensively so the current grammar does not work. Is there any interest in updating the VHDL grammar to 2008 or maybe even 2019 while we're at it?

I'm going to have a go at updating it regardless, but figured I'd check to see the best way to go about it. Is a new branch typically created for fairly large updates like this?

Garreye commented 4 years ago

It looked at first like the grammar was able to parse 2008 but I've finally had a chance to spend some time on this and it looks like 2008 is not supported. Any thoughts on how to proceed?

It looks like the majority of the example file are the IEEE files, should I replace them with the 2008 versions or should I add a 2008 suffix to the newer files.