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

Conflicts

None

OCaml

Innovation. Community. Security.