package menhir

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

Install

Dune Dependency

Authors

Maintainers

Sources

menhir-20181006.tar.gz
sha256=b2ce5cce413a8ff4907c8c39ac7e71d04ffccbec416547770d5b38e9d6996492
md5=d2174b0d4bd8feb66a7484be6f1eed14

Description

Published: 07 Oct 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
  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 >= "27.0~beta"
  36. frama-c-luncov >= "0.2.1"
  37. fstar < "2025.02.17"
  38. gadelac
  39. gdbprofiler
  40. gobba
  41. gospel
  42. graphql_parser >= "0.9.0"
  43. gufo
  44. heptagon
  45. herdtools7 >= "7.55" & < "7.56.1"
  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. liquidsoap < "2.2.0"
  62. liquidsoap-lang < "2.3.0"
  63. logtk
  64. lp
  65. lreplay >= "0.1.1"
  66. lsp < "1.8.0"
  67. MlFront_Cli
  68. mazeppa
  69. mc2
  70. merlin >= "3.5.0" & != "4.6-414" & < "4.7-414"
  71. merlin-lib < "4.8~5.1preview"
  72. minicaml
  73. minimal
  74. mopsa
  75. morbig < "0.11.0"
  76. msat = "0.8"
  77. mustache >= "3.1.0"
  78. nice_parser
  79. obelisk < "0.7.0"
  80. obus >= "1.2.0"
  81. ocaml-lsp-server < "1.2.0"
  82. ocamlformat >= "0.14.0" & < "0.19.0"
  83. ocamlformat-rpc < "0.19.0"
  84. odate < "0.7"
  85. odds
  86. ollvm
  87. ollvm-tapir
  88. ometrics < "0.2.0"
  89. otoml
  90. ott >= "0.32"
  91. p4pp != "0.1.8"
  92. petr4
  93. phylogenetics
  94. ppx_pbt < "0.2.1"
  95. psmt2-frontend
  96. rdf < "0.12.0"
  97. reason
  98. rfsm
  99. runtime_events_tools >= "0.5.0"
  100. sail < "0.15"
  101. satex
  102. satyrographos >= "0.0.2.8"
  103. sgf
  104. shapefile
  105. sifun
  106. smtlib-utils
  107. solidity-parser
  108. sqlgg
  109. squirrel
  110. stog-writing
  111. systemverilog
  112. talaria-bibtex
  113. tip-parser
  114. toml
  115. touist
  116. tptp
  117. uuuu < "0.3.0"
  118. wasm_of_ocaml-compiler
  119. wcs-lib >= "2017-05-26.02"
  120. webidl != "1.2"
  121. why3 < "1.8.0"
  122. wikitext
  123. zanuda
  124. zelus
  125. zipperposition

Conflicts

None

OCaml

Innovation. Community. Security.