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

Conflicts

None

OCaml

Innovation. Community. Security.