Discussion:
A3P1
(too old to reply)
Ali Navrozally
2004-06-21 06:28:57 UTC
Permalink
Hi,
Just wondering how the output for the eof error should be handled:
If you have a file which contains

4#3
asfd



Would the output be

3
Invalid character at position 4. Expected eof.


?

So is it okay to have the number output display as (ie. 3)
well when we get an eof error?

Thanks for your help,

Ali
Troy Mark Gonsalves
2004-06-21 15:22:11 UTC
Permalink
No, you should output the final value in the %eof section of you Yylex
file. So the error will be generated before the value is displayed.

Troy
Post by Ali Navrozally
Hi,
If you have a file which contains
4#3
asfd
Would the output be
3
Invalid character at position 4. Expected eof.
?
So is it okay to have the number output display as (ie. 3)
well when we get an eof error?
Thanks for your help,
Ali
Loading...