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. acgtk >= "1.5.0" & < "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 < "2.3.3"
  7. alt-ergo-parsers
  8. alt-ergo-parsers-free
  9. anders < "0.7.1"
  10. archetype
  11. arrakis
  12. asli
  13. atd
  14. bamboo < "0.0.02"
  15. batsh < "0.0.5"
  16. binsec < "0.4.0"
  17. bnfgen < "3.1.0"
  18. caper
  19. caradoc
  20. cca < "0.6.2"
  21. ccss
  22. cfg < "2.1.0" | >= "2.3.0"
  23. charrua-core
  24. charrua-server
  25. coccinelle >= "1.0.8" & < "1.1.0"
  26. codept >= "0.10.3"
  27. coin < "0.1.4"
  28. combine >= "0.42"
  29. DrawGrammar
  30. dedukti
  31. dkml-dune-dsl-show
  32. doc-ock-xml
  33. dolmen < "0.6"
  34. drom_toml
  35. dune >= "3.17.0"
  36. edn
  37. electrod
  38. electrumAnalyzer
  39. embedded_ocaml_templates < "0.8"
  40. encoding < "0.0.2"
  41. erlang
  42. FrontC >= "4.0.0"
  43. forester != "2.1" & < "3.0.0"
  44. frama-c-luncov >= "0.2.1"
  45. frenetic >= "5.0.0" & < "5.0.5"
  46. fstar >= "0.9.5.0"
  47. gadelac
  48. gdb
  49. gdbprofiler
  50. genet != "0.2"
  51. gobba
  52. graphql_parser >= "0.9.0"
  53. gufo
  54. heptagon >= "1.01.00"
  55. herdtools7 >= "7.55" & < "7.56.1"
  56. imaplet-lwt
  57. inferno >= "20220603"
  58. jasmin
  59. jingoo >= "1.3.1"
  60. js_of_ocaml >= "1.4.0" & < "3.0"
  61. js_of_ocaml-compiler >= "3.7.0"
  62. js_of_ocaml-webgpu < "0.2"
  63. js_of_ocaml-webidl
  64. karamel
  65. kdl
  66. kind2
  67. kremlin < "transition"
  68. labrys
  69. lambdapi < "2.0.0"
  70. lambdoc
  71. libabsolute
  72. libsail < "0.18"
  73. libzipperposition
  74. lilis
  75. links >= "0.9" & < "0.9.4"
  76. liquidsoap >= "1.4.0" & < "2.2.0"
  77. liquidsoap-lang < "2.3.0"
  78. logtk >= "1.5.1"
  79. lp
  80. lreplay >= "0.1.1"
  81. lsp < "1.8.0"
  82. MlFront_Cli
  83. mazeppa < "0.4.1"
  84. mc2
  85. merlin < "2.0.0" | >= "3.5.0" & < "4.6-414" | >= "4.7-412" & < "4.7-414"
  86. merlin-lib < "4.8~5.1preview"
  87. mezzo
  88. minicaml
  89. minimal
  90. modelica_ml
  91. mopsa
  92. morbig < "0.11.0"
  93. msat = "0.8"
  94. mustache >= "3.0.0"
  95. nice_parser
  96. nunchaku
  97. obelisk < "0.7.0"
  98. obrowser
  99. obus >= "1.2.0"
  100. ocaml-lsp-server < "1.2.0"
  101. ocaml-r < "0.1.0"
  102. ocamlformat >= "0.17.0" & < "0.19.0~4.13preview"
  103. ocamlformat-rpc < "0.19.0"
  104. odate < "0.7"
  105. odds
  106. ollvm
  107. ollvm-tapir
  108. ometrics < "0.2.0"
  109. otoml
  110. ott >= "0.32"
  111. p4pp != "0.1.8"
  112. petr4
  113. phylogenetics
  114. ppx_pbt < "0.2.1"
  115. profound
  116. psmt2-frontend
  117. rdf >= "0.6.0" & < "0.12.0"
  118. reason >= "3.3.5"
  119. relit-reason
  120. rfsm
  121. runtime_events_tools >= "0.5.0"
  122. sail < "0.15"
  123. satex
  124. satyrographos >= "0.0.2.8" & < "0.0.2.13"
  125. sgf
  126. shapefile
  127. sibylfs
  128. sifun
  129. smbc < "0.4.2"
  130. smtlib-utils
  131. sociaml-vcard
  132. solidity-parser
  133. sqlgg
  134. squirrel
  135. stog-writing
  136. systemverilog
  137. talaria-bibtex
  138. tip-parser
  139. toml
  140. touist
  141. tptp >= "0.3.1"
  142. uuuu < "0.3.0"
  143. wcs-lib >= "2017-05-26.02"
  144. webidl != "1.2"
  145. why3 >= "1.0.0" & < "1.8.0"
  146. why3-base >= "0.86.3"
  147. wikitext
  148. zanuda
  149. zelus
  150. zephyrus
  151. zipperposition >= "1.1"

Conflicts

None

OCaml

Innovation. Community. Security.