package bnfgen

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
exception Grammar_error of string
type symbol_flags = {
  1. sticky : bool;
  2. sticky_parent : bool;
}
type symbol =
  1. | Terminal of string * symbol_flags
  2. | Nonterminal of string * symbol_flags
  3. | Repeat of symbol * int * int
type rule_alternative = {
  1. weight : int;
  2. symbols : symbol list;
}
type rule = string * rule_alternative list
type grammar = rule list
val reduce_symbol : ?debug:bool -> ?debug_fun:(string -> unit) -> ?separator:string -> symbol list -> grammar -> string option * symbol list
OCaml

Innovation. Community. Security.