Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusing error messages from ocamlyacc #3048

Closed
vicuna opened this issue Aug 7, 2004 · 1 comment
Closed

Confusing error messages from ocamlyacc #3048

vicuna opened this issue Aug 7, 2004 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Aug 7, 2004

Original bug ID: 3048
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)
Has duplicate: #3636

Bug description

Whilst testing an example parser, I got the following error message:

ocamlyacc: e - the symbol table is undefined

After a double-take I realised what the problem was. I'd incorrectly referred
to a rule which reads a table as "table" when it was actually called
something else. Could you put quotes around the symbol in the error message
instead:

ocamlyacc: e - the symbol "table" is undefined

I think this would really help beginners in this situation... :-)

Re: Files beginning with numbers aren't handled elegantly by 3.07+2

It happens to work in 3.08...

Thank you.

Cheers,
Jon.

@vicuna
Copy link
Author

vicuna commented Aug 10, 2004

Comment author: administrator

Hello,

Whilst testing an example parser, I got the following error message:

ocamlyacc: e - the symbol table is undefined
[...]
ocamlyacc: e - the symbol "table" is undefined

I think this would really help beginners in this situation... :-)

Good remark. I've implemented the change in the CVS trunk; it will be
available in 3.09.

-- Damien

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant