package lrgrep

  1. Overview
  2. Docs
Detailed error messages for Menhir-generated parsers

Install

dune-project
 Dependency

Authors

Maintainers

Sources

lrgrep-0.9.tbz
sha256=e53de12e4c5cbe6bca00643593266b4f9fa2e3f6a138195eeff7a4329f5c1c75
sha512=7fd7c4d11506fea7cc11c9bbf5aea9142d905643553c0c90e1bb16b794106b0c14a266acf89ae91b6929008dc0ba6515f788642873e2e4ba6c3d49bd45d25127

doc/kernel/Kernel/Info/Terminal/index.html

Module Info.TerminalSource

include INDEXED with type 'g n = 'g terminal
Sourcetype 'g n = 'g terminal
Sourceval cardinal : 'g grammar -> 'g n Fix.Indexing.cardinal
Sourceval of_int : 'g grammar -> int -> 'g n Fix.Indexing.index
Sourceval to_string : 'g grammar -> 'g n Fix.Indexing.index -> string
Sourceval alias : 'g grammar -> 'g n Fix.Indexing.index -> string option

all g is the set of all terminals in grammar g

Sourceval regular : 'g grammar -> 'g n Utils.Misc.indexset

regular g is the set of regular terminals in grammar g, excluding EOF, ERROR, and pseudo-terminals

Sourceval semantic_value : 'g grammar -> 'g n Fix.Indexing.index -> string option

semantic_value term is Some typ if terminal term has a semantic value of type typ, or None for unparameterized terminals.

Wrapper around IndexSet.inter speeding-up intersection with all

Sourceval is_error : 'g grammar -> 'g n Fix.Indexing.index -> bool

Is it the special `error` symbol

Sourceval lookaheads_to_string : 'g grammar -> 'g n Utils.Misc.indexset -> string

Converts a set of lookahead terminals to a human-readable string. Sets larger than 10 elements are abbreviated.

Sourceval find : 'g grammar -> ?approx:int -> string -> ('g n Fix.Indexing.index, (int * string * 'g n Fix.Indexing.index) list) Stdlib.result

Finds a terminal by name. Returns disambiguation suggestions when the name is not found and approx > 0.