Ticket #16 (closed feature request: fixed)

Opened 5 years ago

Last modified 5 years ago

Add more entry points to the grammar

Reported by: andreas.farre@… Owned by: nibro
Priority: trivial Milestone: Full code support
Component: parser Version:
Keywords: Cc:

Description

Add the possibility of not parsing only strings that result in values of type 'Module' but also 'Exp', 'Decl' etc. More entry points would remove the need of e.g. creating fake module headers and/or fake declarations for parsing expressions.

Change History

Changed 5 years ago by nibro

Yes indeed. This should not be all that hard to fix, since happy already supports multiple entrypoints.

Changed 5 years ago by nibro

  • status changed from new to closed
  • resolution set to fixed

I've added entry points for expressions, patterns, declarations and types, as well as a partial parser for top-level option pragmas. Holler if you want more than that, it doesn't take much effort to fix.

Note: See TracTickets for help on using tickets.