Ticket #12 (closed feature request: fixed)

Opened 8 years ago

Last modified 8 years ago

Implement support for SrcSpans

Reported by: nibro Owned by: nibro
Priority: minor Milestone:
Component: syntax Version:
Keywords: Cc:

Description (last modified by nibro) (diff)

Where a SrcLoc represents a location in the source, a SrcSpan represent an area, with a start and an end. This is useful for various applications, and has been specifically requested by the LHC team.

The intended mode of attack would be to parametrize the AST on what type of source information it uses, use a type class for the various kinds of source information that can be read during parsing, and have the parse function return an AST with the proper type.

Change History

Changed 8 years ago by nibro

  • description modified (diff)

Changed 8 years ago by nibro

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

This is now implemented in versions >=1.1.3, as experimental. Will be considered stable from 1.2.0.

Note: See TracTickets for help on using tickets.