package nacc

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val char : char -> char Parsing.parser

Parse a single char

val one_of : char list -> char Parsing.parser

Parser for any char of a given list

val one_in : string -> char Parsing.parser

Parse one any char of a given string

val spaced : 'a Parsing.parser -> 'a Parsing.parser

Parse on of the char of a given list

val integer : int Parsing.parser

Parser for integer litterals

val floatingpoint : float Parsing.parser
val binop : ('a -> 'a -> 'b) -> char -> 'a Parsing.parser -> 'b Parsing.parser

Parser for binary operations patterns

  • parameter cons

    a 2-parameters constructor

  • parameter c

    an operator character

  • parameter v

    any parser

val cbinop : ('a -> 'a -> 'b) -> 'c Parsing.parser -> 'a Parsing.parser -> 'b Parsing.parser

Parser for binary operations patterns

  • parameter cons

    a 2-parameters constructor

  • parameter cc

    a parser (for the binary operator)

  • parameter v

    any parser

val blanks : char list Parsing.parser

Parser for optionnal white spaces

val force_blanks : char list Parsing.parser

Parser for at least one white space

val parenthesized : char -> 'a Parsing.parser -> char -> 'a Parsing.parser

Parser parenthesized data

val cparenthesized : 'a Parsing.parser -> 'b Parsing.parser -> 'c Parsing.parser -> 'b Parsing.parser

Custom parenthesized data

OCaml

Innovation. Community. Security.