This is the main production in my grammar:
phrase =
{instruction} instr |
{complex_instruction} instr newline+ phrase? ;
Now, if someone just put a newline I'm getting the error it's expecting an
instruction. I could not set it as ignored token because it's part of the
grammar. Should I add a newline* in front of both alternatives?
--
Distinti Saluti
Emanuele Ianni
Le informazioni e gli allegati contenuti in questa e-mail sono considerati
confidenziali e possono essere riservati. Qualora non foste il destinatario,
siete pregati di distruggere questo messaggio e notificarmi il problema
immediatamente. In ogni caso, non dovrete spedire a terze parti questa
e-mail. Vi ricordo che la diffusione, l'utilizzo e/o la conservazione dei
dati ricevuti per errore costituiscono violazione alle disposizioni del D.L.
n. 196/2003 denominato "Codice in materia di protezione dei dati personali"
Tale disclaimer non vale nel caso il messaggio sia in una mailing list
pubblica.
The information in this e.mail and in any attachements is confidential and
may be privileged. If you are not the intended recipient, please destroy
this message and notify the sender immediately. You should not retain, copy
or use this e.mail for any purpose, nor disclose all or any part of its
contents to any other person according to the Italian Legislative Decree n.
196/2003.
This disclaimer should be not considered if the message is on a public
mailing list.
_______________________________________________
SableCC-Discussion mailing list
[email protected]
http://lists.sablecc.org/listinfo/sablecc-discussion