G0 X1.0 Y2.0 Z3.0 M03
G0 X1.0 M03 Y2.0 Z3.0 M03
Hi Kent,
It is possible to put these rules in the original grammar, but it is not recommended for several reasons. Placing these types of semantic rules in the post-parse stage improves the ability to report understandable error messages, and greatly improves the ability of the parser to recover from syntax errors. In many cases it also improves the performance of the parser and reduces the size of both the generated code and the dynamic cache that is created at runtime.
Sam
--
You received this message because you are subscribed to the Google Groups "antlr-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
antlr-discussi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--