package lrgrep

  1. Overview
  2. Docs
Analyse the stack of a Menhir-generated LR parser using regular expressions

Install

dune-project
 Dependency

Authors

Maintainers

Sources

lrgrep-0.3.tbz
sha256=84a1874d0c063da371e19c84243aac7c40bfcb9aaf204251e0eb0d1f077f2cde
sha512=5a16ff42a196fd741bc64a1bdd45b4dca0098633e73aa665829a44625ec15382891c3643fa210dbe3704336eab095d4024e093e37ae5313810f6754de6119d55

doc/kernel/Kernel/index.html

Module KernelSource

Sourcemodule Automata : sig ... end

This module is responsible for generating a deterministic finite automaton (DFA) from a given grammar and lookahead set. The DFA is used to perform pattern matching on input tokens according to the grammar rules. The module includes several stages:

Sourcemodule Codegen : sig ... end
Sourcemodule Coverage : sig ... end
Sourcemodule Enumeration : sig ... end
Sourcemodule Info : sig ... end

This module defines data structures and operations for handling grammar information in a structured way. It includes representations for terminals, non-terminals, productions, and LR states, along with their transitions and reductions. The module is designed to work with Menhir's grammar representation and extends it with additional functionality for convenience.

Sourcemodule Lrc : sig ... end
Sourcemodule Reachability : sig ... end

This module computes the reachability of states in a parser automaton. It is used to reason about the behavior of an LR(1) automaton after conflict resolution (with some transitions removed). The module implements algorithms for partitioning lookahead symbols with identical behaviors, and uses these partitions to determine the cost of reaching each state with a given lookahead.

Sourcemodule Redgraph : sig ... end
Sourcemodule Regexp : sig ... end
Sourcemodule Sentence_generation : sig ... end
Sourcemodule Spec : sig ... end
Sourcemodule Transl : sig ... end