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

Conflicts

None

OCaml

Innovation. Community. Security.