-
Notifications
You must be signed in to change notification settings - Fork 1.2k
ocamlyacc loops #2346
Copy link
Copy link
Closed
Labels
Description
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
Reactions are currently unavailable