package menhir

  1. Overview
  2. Docs
LR(1) parser generator

Install

Dune Dependency

Authors

Maintainers

Sources

menhir-20180905.tar.gz
sha256=82f3767290e39bf1ce3e260cd3cf486295891d57351cdccaedc6919000746750
md5=1271e9ce3d3cb56581fa45e990b70679

Description

Published: 07 Sep 2018

README

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.

Dependencies (3)

  1. ocamlbuild build
  2. ocamlfind build
  3. ocaml >= "4.02" & < "5.0"

Dev Dependencies

None

  1. absolute >= "0.2"
  2. acgtk < "1.5.3"
  3. aifad >= "2.3.0"
  4. alba < "0.4.3"
  5. alt-ergo >= "2.0.0" & < "2.3.0" | >= "2.4.0"
  6. alt-ergo-free
  7. alt-ergo-parsers
  8. archetype
  9. arrakis
  10. asli
  11. atd
  12. bnfgen < "3.1.0"
  13. caper
  14. cca < "0.6.2"
  15. cfg >= "2.3.0"
  16. charrua-core
  17. charrua-server < "2.0.0"
  18. coccinelle < "1.1.0"
  19. codept < "0.12.1"
  20. codept-lib
  21. coin < "0.1.4"
  22. dedukti
  23. diffast-core
  24. diffast-langs-cpp-parsing
  25. diffast-langs-fortran-parsing
  26. diffast-langs-java-parsing
  27. diffast-langs-python-parsing
  28. diffast-langs-verilog-parsing
  29. dkml-dune-dsl-show
  30. dolmen < "0.6"
  31. drom_toml
  32. dune >= "3.17.0"
  33. edn
  34. electrod
  35. electrumAnalyzer
  36. embedded_ocaml_templates < "0.8"
  37. encoding < "0.0.2"
  38. erlang
  39. FrontC >= "4.0.0"
  40. forester != "2.1" & < "3.0.0"
  41. frama-c-luncov >= "0.2.1"
  42. fstar < "2025.02.17"
  43. gadelac
  44. gdbprofiler
  45. gobba
  46. graphql_parser >= "0.9.0"
  47. gufo
  48. heptagon
  49. herdtools7 >= "7.55" & < "7.56.1"
  50. inferno >= "20220603"
  51. jasmin
  52. jingoo >= "1.3.1"
  53. js_of_ocaml-compiler >= "3.7.1"
  54. js_of_ocaml-webgpu < "0.2"
  55. js_of_ocaml-webidl
  56. karamel
  57. kdl
  58. kind2
  59. kremlin < "transition"
  60. labrys
  61. libabsolute
  62. libsail < "0.18"
  63. libzipperposition
  64. links < "0.9.4"
  65. liquidsoap < "2.2.0"
  66. liquidsoap-lang < "2.3.0"
  67. logtk
  68. lp
  69. lreplay >= "0.1.1"
  70. lsp < "1.8.0"
  71. MlFront_Cli
  72. mazeppa
  73. mc2
  74. merlin >= "3.5.0" & != "4.6-414" & < "4.7-414"
  75. merlin-lib < "4.8~5.1preview"
  76. minicaml
  77. minimal
  78. mopsa
  79. morbig < "0.11.0"
  80. msat = "0.8"
  81. mustache >= "3.1.0"
  82. nice_parser
  83. obelisk < "0.7.0"
  84. obus >= "1.2.0"
  85. ocaml-lsp-server < "1.2.0"
  86. ocamlformat >= "0.17.0" & < "0.19.0"
  87. ocamlformat-rpc < "0.19.0"
  88. odate < "0.7"
  89. odds
  90. ollvm
  91. ollvm-tapir
  92. ometrics < "0.2.0"
  93. otoml
  94. ott >= "0.32"
  95. p4pp != "0.1.8"
  96. petr4
  97. phylogenetics
  98. ppx_pbt < "0.2.1"
  99. psmt2-frontend
  100. rdf < "0.12.0"
  101. reason
  102. rfsm
  103. runtime_events_tools >= "0.5.0"
  104. sail < "0.15"
  105. satex
  106. satyrographos >= "0.0.2.8" & < "0.0.2.13"
  107. sgf
  108. shapefile
  109. sifun
  110. smtlib-utils
  111. solidity-parser
  112. sqlgg
  113. squirrel
  114. stog-writing
  115. systemverilog
  116. talaria-bibtex
  117. tip-parser
  118. toml
  119. touist
  120. tptp
  121. uuuu < "0.3.0"
  122. wasm_of_ocaml-compiler
  123. wcs-lib >= "2017-05-26.02"
  124. webidl != "1.2"
  125. why3 < "1.8.0"
  126. wikitext
  127. zanuda
  128. zelus
  129. zipperposition

Conflicts

None

OCaml

Innovation. Community. Security.