Skip to content

ocamlyacc loops #2346

@vicuna

Description

@vicuna

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions