Alexandru Mosoi wrote: > and, how do I treat semantic errors? I need to output an error and stop > if there is any problem. If you want every error to be fatal, see §10.4 in the book. Or you could throw your own exception (i.e., not a RecognitionException) in an action block. -- O.L.