[prog] Yacc - double errors
Jimen Ching
jching at flex.com
Tue Feb 10 14:31:10 EST 2004
On Tue, 10 Feb 2004, Sue Stones wrote:
>Having written this helped clear my head. Re reading the book, and doing
>things diferently has shown that this is exactally what happend. Using
>the error token actually calls yyerror.
Yes, yyerror is called when a syntactic error is detected. You only need
to manually call yyerror for semantic errors, or contextual problems.
Yacc can only verify the input stream conforms to your grammar, nothing
more.
--jc
--
Jimen Ching (WH6BRR) jching at flex.com wh6brr at uhm.ampr.org
More information about the Programming
mailing list