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.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 >= "27.0~beta"
  45. frama-c-luncov >= "0.2.1"
  46. frenetic >= "5.0.0" & < "5.0.5"
  47. fstar >= "0.9.5.0"
  48. gadelac
  49. gdb
  50. gdbprofiler
  51. genet != "0.2"
  52. gobba
  53. gospel
  54. graphql_parser >= "0.9.0"
  55. gufo
  56. heptagon >= "1.01.00"
  57. herdtools7 >= "7.55" & < "7.56.1"
  58. imaplet-lwt
  59. inferno >= "20220603"
  60. jasmin
  61. jingoo >= "1.3.1"
  62. js_of_ocaml >= "1.4.0" & < "3.0"
  63. js_of_ocaml-compiler >= "3.7.0"
  64. js_of_ocaml-webgpu < "0.2"
  65. js_of_ocaml-webidl
  66. karamel
  67. kdl
  68. kind2
  69. kremlin < "transition"
  70. labrys
  71. lambdapi < "2.0.0"
  72. lambdoc
  73. libabsolute
  74. libsail < "0.18"
  75. libzipperposition
  76. lilis
  77. links >= "0.9" & < "0.9.4"
  78. liquidsoap >= "1.4.0" & < "2.2.0"
  79. liquidsoap-lang < "2.3.0"
  80. logtk >= "1.5.1"
  81. lp
  82. lreplay >= "0.1.1"
  83. lsp < "1.8.0"
  84. MlFront_Cli
  85. mazeppa
  86. mc2
  87. merlin < "2.0.0" | >= "3.5.0" & < "4.6-414" | >= "4.7-412" & < "4.7-414"
  88. merlin-lib < "4.8~5.1preview"
  89. mezzo
  90. minicaml
  91. minimal
  92. modelica_ml
  93. mopsa
  94. morbig < "0.11.0"
  95. msat = "0.8"
  96. mustache >= "3.0.0"
  97. nice_parser
  98. nunchaku
  99. obelisk < "0.7.0"
  100. obrowser
  101. obus >= "1.2.0"
  102. ocaml-lsp-server < "1.2.0"
  103. ocaml-r < "0.1.0"
  104. ocamlformat >= "0.14.0" & < "0.19.0~4.13preview"
  105. ocamlformat-rpc < "0.19.0"
  106. odate < "0.7"
  107. odds
  108. ollvm
  109. ollvm-tapir
  110. ometrics < "0.2.0"
  111. otoml
  112. ott >= "0.32"
  113. p4pp != "0.1.8"
  114. petr4
  115. phylogenetics
  116. ppx_pbt < "0.2.1"
  117. profound
  118. psmt2-frontend
  119. rdf >= "0.6.0" & < "0.12.0"
  120. reason >= "3.3.5"
  121. relit-reason
  122. rfsm
  123. runtime_events_tools >= "0.5.0"
  124. sail < "0.15"
  125. satex
  126. satyrographos >= "0.0.2.8"
  127. sgf
  128. shapefile
  129. sibylfs
  130. sifun
  131. smbc < "0.4.2"
  132. smtlib-utils
  133. sociaml-vcard
  134. solidity-parser
  135. sqlgg
  136. squirrel
  137. stog-writing
  138. systemverilog
  139. talaria-bibtex
  140. tip-parser
  141. toml
  142. touist
  143. tptp >= "0.3.1"
  144. uuuu < "0.3.0"
  145. wcs-lib >= "2017-05-26.02"
  146. webidl != "1.2"
  147. why3 >= "1.0.0" & < "1.8.0"
  148. why3-base >= "0.86.3"
  149. wikitext
  150. zanuda
  151. zelus
  152. zephyrus
  153. zipperposition >= "1.1"

Conflicts

None

OCaml

Innovation. Community. Security.