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. 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.6"
  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. liquidsoap < "2.3.3"
  63. liquidsoap-lang < "2.3.0"
  64. logtk
  65. lp
  66. lreplay >= "0.1.1"
  67. lsp < "1.15.1-5.0"
  68. MlFront_Cli < "2.3.1"
  69. mazeppa < "0.4.1"
  70. mc2
  71. merlin < "4.14-500"
  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. ocamlformat >= "0.17.0" & < "0.19.0"
  82. ocamlformat-rpc < "0.19.0"
  83. odate < "0.7"
  84. odds
  85. ollvm
  86. ollvm-tapir
  87. ometrics < "0.2.0"
  88. otoml
  89. ott >= "0.32"
  90. p4pp != "0.1.8"
  91. petr4
  92. phylogenetics
  93. ppx_pbt < "0.2.1"
  94. psmt2-frontend
  95. rdf < "0.12.0"
  96. reason
  97. rfsm
  98. runtime_events_tools >= "0.5.0"
  99. sail < "0.15"
  100. satex
  101. satyrographos >= "0.0.2.8" & < "0.0.2.13"
  102. sgf
  103. shapefile
  104. sifun
  105. smtlib-utils
  106. solidity-parser
  107. sqlgg
  108. squirrel
  109. stog-writing
  110. systemverilog
  111. talaria-bibtex
  112. tip-parser
  113. toml
  114. touist
  115. tptp
  116. uuuu < "0.3.0"
  117. wasm_of_ocaml-compiler
  118. wcs-lib >= "2017-05-26.02"
  119. webidl != "1.2"
  120. why3 < "1.8.0"
  121. wikitext
  122. zanuda
  123. zelus
  124. zipperposition

Conflicts

None

OCaml

Innovation. Community. Security.