package menhir

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

Install

Dune Dependency

Authors

Maintainers

Sources

menhir-20180530.tar.gz
sha256=a8cb2326790cf701b84966ea7aec644b67c0ed80293961a2b3a07082b7a05aa2
md5=81a1878e1d73fec2ede859bd20538d1f

Description

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

Conflicts

None

OCaml

Innovation. Community. Security.