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

ocamlyacc loops #2346

Closed
vicuna opened this issue Jan 8, 2000 · 1 comment
Closed

ocamlyacc loops #2346

vicuna opened this issue Jan 8, 2000 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Jan 8, 2000

Original bug ID: 17
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Markus Mottl
Version: 2.99
OS: SunOS 5.6
Submission from: alford.dai.ed.ac.uk (129.215.25.74)

Hello,

I have just found a bug in ocamlyacc which makes it loop
forever while eating up memory. The following short file
demonstrates this:

file: foo.mly

%type < int
> t

The intention was to split up somewhat longer declarations
over several lines for readability. Obviously, ocamlyacc
cannot handle multi-line type declarations.

A workaround is to declare the type separately elsewhere
and then refer to the corresponding name in the type
declaration for the parser entry point.

Best regards,
Markus Mottl

@vicuna
Copy link
Author

vicuna commented Jan 13, 2000

Comment author: administrator

I have just found a bug in ocamlyacc which makes it loop
forever while eating up memory. The following short file
demonstrates this:

file: foo.mly

%type < int
> t

I fixed it the easy way: ocamlyacc will now signal a syntax error
at the end of the %type line.

-- Damien

@vicuna vicuna closed this as completed Jan 13, 2000
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant