I am using Antlr4 to tokenize and parse a legacy language, my end goal is to generate C# code and execute this code in a runtime environment that simulates the physical hardware that executes the legacy language.
The simulator and code generation is working very well.
I would like to generate specific error messages or warning messages from the listener, is this possible?
For example the language allows a line to end or not end in a semi-colon, I would like to issue a warning if a line is missing a semi-colon.
I have many more similar scenarios, the language and physical hardware have a number of bizarre characteristics.
Thanks, Gregg