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/Production/index.html

Module Info.ProductionSource

include INDEXED with type 'g n = 'g production
Sourcetype 'g n = 'g production
Sourceval cardinal : 'g grammar -> 'g n Fix.Indexing.cardinal
Sourceval of_int : 'g grammar -> int -> 'g n Fix.Indexing.index

lhs p returns the left-hand side nonterminal of production p

rhs p returns the right-hand side symbols of production p

Sourceval length : 'g grammar -> 'g n Fix.Indexing.index -> int

length p returns the number of symbols on the right-hand side of production p

Sourceval kind : 'g grammar -> 'g n Fix.Indexing.index -> [ `REGULAR | `START ]

Returns `REGULAR for ordinary productions and `START for pseudo (start) productions generated for entrypoints

all g is the set of all productions in grammar g