package menhir

  1. Overview
  2. Docs

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. 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. frama-c >= "27.0~beta"
  44. frenetic >= "5.0.0" & < "5.0.5"
  45. fstar >= "0.9.5.0"
  46. gadelac
  47. gdb
  48. gdbprofiler
  49. genet != "0.2"
  50. gobba
  51. gospel
  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
  73. libzipperposition
  74. lilis
  75. links >= "0.9" & < "0.9.4"
  76. liquidsoap >= "1.4.0" & < "2.2.0"
  77. liquidsoap-lang
  78. logtk >= "1.5.1"
  79. lp
  80. lsp < "1.8.0" | >= "1.11.3" & < "1.12.1"
  81. mc2
  82. merlin < "2.0.0" | >= "3.5.0" & < "4.6-414" | >= "4.7-412" & < "4.7-414"
  83. merlin-lib < "4.8~5.1preview"
  84. mezzo
  85. minicaml
  86. minimal
  87. modelica_ml
  88. morbig < "0.11.0"
  89. msat = "0.8"
  90. mustache >= "3.0.0"
  91. nice_parser
  92. nunchaku
  93. obelisk
  94. obrowser
  95. obus >= "1.2.0"
  96. ocaml-lsp-server < "1.2.0"
  97. ocaml-r < "0.1.0"
  98. ocamlformat >= "0.14.0" & < "0.19.0~4.13preview"
  99. ocamlformat-rpc < "0.19.0"
  100. odate < "0.7"
  101. odds
  102. ollvm
  103. ollvm-tapir
  104. ometrics < "0.2.0"
  105. otoml
  106. ott >= "0.32"
  107. p4pp != "0.1.8"
  108. petr4
  109. phylogenetics
  110. ppx_pbt < "0.2.1"
  111. profound
  112. psmt2-frontend
  113. rdf >= "0.6.0" & < "0.12.0"
  114. reason >= "3.3.5"
  115. relit-reason
  116. rfsm
  117. runtime_events_tools >= "0.5.0"
  118. sail < "0.15"
  119. satex
  120. satyrographos >= "0.0.2.8"
  121. sgf
  122. shapefile
  123. sibylfs
  124. sifun
  125. smbc < "0.4.2"
  126. smtlib-utils
  127. sociaml-vcard
  128. solidity-parser
  129. sqlgg
  130. squirrel
  131. stog-writing
  132. systemverilog
  133. talaria-bibtex
  134. tip-parser
  135. toml
  136. touist
  137. tptp >= "0.3.1"
  138. uuuu < "0.3.0"
  139. wcs-lib >= "2017-05-26.02"
  140. webidl != "1.2"
  141. why3 >= "1.0.0"
  142. why3-base >= "0.86.3"
  143. wikitext
  144. zanuda
  145. zelus
  146. zephyrus
  147. zipperposition >= "1.1"

Conflicts

None

OCaml

Innovation. Community. Security.