Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000017OCamlOCaml generalpublic2000-01-08 13:572000-01-13 19:24
Reporteradministrator 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000017: ocamlyacc loops
DescriptionFull_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

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000292)
administrator (administrator)
2000-01-13 19:20

> 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

- Issue History
Date Modified Username Field Change
2005-11-18 10:13 administrator New Issue


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker