package lrgrep
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
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/Coverage/index.html
Module Kernel.CoverageSource
module Position : sig ... endSource
type 'g positions = {desc : ('g position, 'g position_desc) Fix.Indexing.vector;zero : ('g Info.nonterminal, 'g position Fix.Indexing.index) Fix.Indexing.vector;
}Source
val previous_position :
'g positions ->
int ->
('g Info.nonterminal Fix.Indexing.index, int) Stdlib.Either.tSource
val get_map :
('a, ('b, 'c Utils.IndexSet.t Stdlib.ref) Utils.IndexMap.t)
Fix.Indexing.Vector.t ->
int ->
'b Fix.Indexing.index ->
'c Utils.IndexSet.t Stdlib.refSource
type ('g, 'lrc) lrc_position =
('g position Fix.Indexing.Opt.n, 'lrc) Fix.Indexing.Prod.n Fix.Indexing.indexSource
type ('g, 'st, 'lrc) coverage_transition = {source : 'st Fix.Indexing.index;source_position : ('g, 'lrc) lrc_position;target_position : ('g, 'lrc) lrc_position;lookahead : 'g Info.terminal Utils.Misc.indexset;
}Source
type ('g, 'st, 'lrc) machine_coverage = {transitions : ('st, ('g, 'st, 'lrc) coverage_transition list) Fix.Indexing.vector;unhandled_initial : 'lrc Utils.Misc.indexset;unhandled_predecessors : ('st, (('g, 'lrc) lrc_position * 'lrc Utils.Misc.indexset * 'g Info.terminal Utils.Misc.indexset) list) Fix.Indexing.vector;
}Source
val coverage :
'g Info.grammar ->
('g, 'r) Spec.branches ->
('g, 'r, 'st, 'tr) Automata.Machine.t ->
('g, 'lrc) Automata.stacks ->
('g Info.lr1, 'g Redgraph.reduction_closure) Fix.Indexing.vector ->
'g positions ->
int option ->
('g, 'st, 'lrc) machine_coverageSource
val string_of_items_for_filter :
'a Kernel__Info.grammar ->
'a Info.Lr0.n Fix.Indexing.index ->
string listSource
type ('g, 'lrc) uncovered_case = {main_pattern : 'g Info.lr0 Fix.Indexing.index;suffixes : ('lrc Fix.Indexing.index list * 'g Info.terminal Utils.Misc.indexset * 'g Info.lr0 Utils.Misc.indexset) list;
}Source
val uncovered_cases :
'a Info.grammar ->
('a Info.lr1, 'a Redgraph.reduction_closure) Fix.Indexing.vector ->
('a, 'lrc) Automata.stacks ->
'a positions ->
('a, 'b, 'lrc) machine_coverage ->
('a, 'lrc) uncovered_case Stdlib.Seq.tSource
val report_case :
'a Info.grammar ->
('a, 'b) Automata.stacks ->
'a Reachability.t ->
output:(string -> unit) ->
get_prefix:('b Fix.Indexing.index -> 'b Fix.Indexing.index list) ->
('a, 'b) uncovered_case ->
unit sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>