nice_parser

Nice parsers without the boilerplate
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library nice_parser
Module Nice_parser
module type RAW_PARSER = sig ... end

The raw interface to an auto-generated parser/lexer pair.

module type NICE_PARSER = sig ... end

The nicified interface to your parser.

module Make (P : RAW_PARSER) : NICE_PARSER with type token = P.token and type result = P.result

Pass your parser/lexer to this functor to obtain a nicer interface, without having to write boilerplate code.