package menhir

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

Install

Dune Dependency

Authors

Maintainers

Sources

menhir-20180703.tar.gz
sha256=ab5f16632e81fb67844becde994dbdd6fd875b3a9c799a275af8083f4f2d9b9b
md5=d51c0a529f02baf414fb269a9d240077

Description

Published: 06 Jul 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.6"
  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. liquidsoap < "2.2.0"
  67. liquidsoap-lang < "2.3.0"
  68. logtk
  69. lp
  70. lreplay >= "0.1.1"
  71. lsp < "1.8.0"
  72. MlFront_Cli < "2.3.1"
  73. mazeppa < "0.4.1"
  74. mc2
  75. merlin >= "3.5.0" & != "4.6-414" & < "4.7-414"
  76. merlin-lib < "4.8~5.1preview"
  77. minicaml
  78. minimal
  79. mopsa
  80. morbig < "0.11.0"
  81. msat = "0.8"
  82. mustache >= "3.1.0"
  83. nice_parser
  84. obelisk < "0.7.0"
  85. obus >= "1.2.0"
  86. ocaml-lsp-server < "1.2.0"
  87. ocamlformat >= "0.17.0" & < "0.19.0"
  88. ocamlformat-rpc < "0.19.0"
  89. odate < "0.7"
  90. odds
  91. ollvm
  92. ollvm-tapir
  93. ometrics < "0.2.0"
  94. otoml
  95. ott >= "0.32"
  96. p4pp != "0.1.8"
  97. petr4
  98. phylogenetics
  99. ppx_pbt < "0.2.1"
  100. psmt2-frontend
  101. rdf < "0.12.0"
  102. reason
  103. rfsm
  104. runtime_events_tools >= "0.5.0"
  105. sail < "0.15"
  106. satex
  107. satyrographos >= "0.0.2.8" & < "0.0.2.13"
  108. sgf
  109. shapefile
  110. sifun
  111. smtlib-utils
  112. solidity-parser
  113. sqlgg
  114. squirrel
  115. stog-writing
  116. systemverilog
  117. talaria-bibtex
  118. tip-parser
  119. toml
  120. touist
  121. tptp
  122. uuuu < "0.3.0"
  123. wasm_of_ocaml-compiler
  124. wcs-lib >= "2017-05-26.02"
  125. webidl != "1.2"
  126. why3 < "1.8.0"
  127. wikitext
  128. zanuda
  129. zelus
  130. zipperposition

Conflicts

None

OCaml

Innovation. Community. Security.