Hello,
How do I output the AST for CSharp?
options {
output=AST;
}
I am getting these kinds of errors:
Severity Code Description Project File Line Suppression State
Error AC0050 '^' came as a complete surprise to me Kingdom.OrTools.Sat.Params.Antlr path\to\src\Kingdom.OrTools.Sat.Params.Antlr\Protov2.g4 240
Over things such as this:
SYNTAX: 'syntax';
syntaxDecl
: SYNTAX^ '=' (
'\'proto2\''
| '"proto2"'
)/*{My.OrTools.Sat.SyntaxKind.Proto2}*/ ';'
;
Eventually, I would also like to synthesize actual target language level values such as:
enum My.OrTools.Sat.SyntaxKind {
Proto2
}
Thoughts?
Thanks in advance...
Best regards,
Michael W Powell