package menhir

  1. Overview
  2. Docs

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

Conflicts

None