Ticket #653 (closed feature request: fixed)

Opened 6 years ago

Last modified 9 months ago

Changeable lexer/parser (like DynFlags.log_action)

Reported by: Lemmih Owned by:
Priority: low Milestone: _|_
Component: Compiler Version: 6.4.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Moderate (less than a day)
Test Case: N/A Blocked By:
Blocking: Related Tickets:

Description

It would be very convenient for projects such as 'Haskell Server Pages' if the GHC library allowed the user to supply his own lexer and parser.

Change History

Changed 6 years ago by simonmar

  • milestone 6.6 deleted

Not gonna happen in 6.6...

Changed 5 years ago by igloo

  • testcase set to N/A

Does the GHC API provide what is needed for this?

Changed 5 years ago by igloo

  • milestone set to _|_

Changed 3 years ago by simonmar

  • architecture changed from Multiple to Unknown/Multiple

Changed 3 years ago by simonmar

  • os changed from Multiple to Unknown/Multiple

Changed 2 years ago by simonmar

  • difficulty changed from Moderate (1 day) to Moderate (less than a day)

Changed 9 months ago by simonmar

  • status changed from new to closed
  • failure set to None/Unknown
  • resolution set to fixed

The GHC API exposes separate phases, so you can replace the provided

parseModule :: GhcMonad m => ModSummary -> m ParsedModule

with your own if you wish.

Note: See TracTickets for help on using tickets.