Skip to content
Discussion options

You must be logged in to vote

The csharp grammar does not have a Go port, which you can tell from in the targets list of the desc.xml. People sometimes write a non-functioning port, or break ports while extending other ports. This is why we have the desc.xml file. It's the only way to declare whether the port actually works or not.

The base classes for the grammar (CSharpLexerBase and CSharpParserBase) are written by hand, not generated. With @members, you don't declare the base class in the .g4 in the options { superClass=...; } statement. They are mutually exclusive.

But, in general, we don't use @members in the .g4's in this repo because it destroys any possibility of using the grammar in other ports. If every port…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RotkivDS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants