package menhir
LR(1) parser generator
Install
Dune Dependency
Authors
Maintainers
Sources
menhir-20170607.tar.gz
sha256=00caa66ed0d1544defda24539f2ca1d37b92120e0575aafc5fcabd8e5364ce61
md5=993b60845182c71d777b1f3cf9a01b96
README.md.html
README.md
This tool, menhir-generate-printers
, reads a .cmly
file and produces code for three functions, namely print_symbol
, print_value
, and print_token
.
val print_symbol: MenhirInterpreter.xsymbol -> string
By default, print_symbol
prints the internal name of a (terminal or nonterminal) symbol. This can however be changed by attaching a [@name]
attribute with this symbol. The attribute payload should be an OCaml expression of type string
.
val print_value: 'a MenhirInterpreter.symbol -> 'a -> string
val print_token: token -> string
By default, print_value
and print_token
ignore the semantic value and print just the name of the symbol, like print_symbol
. This can however be changed by attaching a [@printer]
attribute with this symbol. The attribute payload should be an OCaml expression of type _ -> string
, where _
stands for an appropriate type of semantic values.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>