package menhir

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

Install

Dune Dependency

Authors

Maintainers

Sources

menhir-20180528.tar.gz
sha256=6fb761b4da83698a3e9958f06a511f7ca7ffa4e3b4db0173124a444a88435802
md5=55dc9651a95f582b3534c438353809a2

Description

Published: 28 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. inferno >= "20220603"
  47. jasmin
  48. jingoo >= "1.3.1"
  49. js_of_ocaml-compiler >= "3.7.1"
  50. js_of_ocaml-webgpu < "0.2"
  51. js_of_ocaml-webidl
  52. karamel
  53. kdl
  54. kind2
  55. kremlin < "transition"
  56. labrys
  57. libabsolute
  58. libsail < "0.18"
  59. libzipperposition
  60. links < "0.9.4"
  61. logtk
  62. lp
  63. lreplay >= "0.1.1"
  64. lsp < "1.15.1-5.0"
  65. MlFront_Cli < "2.3.1"
  66. mazeppa < "0.4.1"
  67. mc2
  68. merlin < "4.14-500"
  69. minicaml
  70. minimal
  71. mopsa
  72. morbig < "0.10.3"
  73. msat = "0.8"
  74. mustache = "3.1.0"
  75. nice_parser
  76. obelisk < "0.7.0"
  77. obus >= "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.