package menhir

  1. Overview
  2. Docs

Description

Published: 15 Oct 2017

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
  3. ocaml >= "4.02" & < "5.0"

Dev Dependencies

None

  1. acgtk >= "1.5.0" & < "1.5.3"
  2. alba < "0.4.3"
  3. alt-ergo >= "2.0.0" & < "2.3.0" | >= "2.4.0"
  4. alt-ergo-free < "2.3.3"
  5. alt-ergo-parsers
  6. alt-ergo-parsers-free
  7. anders < "0.7.1"
  8. archetype < "1.0.0" | >= "1.2.1" & < "1.2.5"
  9. asli
  10. atd < "2.3.3"
  11. bamboo < "0.0.02"
  12. batsh < "0.0.5"
  13. binsec < "0.4.0"
  14. caper
  15. caradoc
  16. cca < "0.6.2"
  17. ccss
  18. cfg < "2.1.0"
  19. charrua-core
  20. charrua-server < "1.4.0"
  21. coccinelle >= "1.0.7" & < "1.1.0"
  22. codept = "0.10.3"
  23. coin < "0.1.4"
  24. combine >= "0.42"
  25. DrawGrammar
  26. dedukti < "2.7"
  27. doc-ock-xml
  28. dolmen < "0.4"
  29. drom_toml
  30. edn < "0.2.0"
  31. electrod
  32. electrumAnalyzer
  33. embedded_ocaml_templates < "0.3.1"
  34. encoding < "0.0.2"
  35. erlang
  36. FrontC = "4.0.0"
  37. forester != "2.1" & < "3.0.0"
  38. frenetic >= "5.0.0" & < "5.0.5"
  39. fstar >= "0.9.5.0"
  40. gadelac
  41. gdb
  42. gdbprofiler < "0.4"
  43. genet != "0.2"
  44. gobba
  45. gufo
  46. heptagon >= "1.01.00"
  47. imaplet-lwt
  48. inferno >= "20220603"
  49. jasmin
  50. js_of_ocaml >= "1.4.0" & < "3.0"
  51. js_of_ocaml-compiler >= "3.7.0"
  52. karamel
  53. kdl
  54. kind2 < "1.6.0"
  55. kremlin < "transition"
  56. labrys
  57. lambdapi < "2.0.0"
  58. lambdoc
  59. libzipperposition
  60. lilis
  61. links >= "0.9" & < "0.9.4"
  62. logtk >= "1.5.1"
  63. lp < "0.4.0"
  64. lsp < "1.8.0" | >= "1.11.3" & < "1.12.1"
  65. mc2
  66. merlin < "2.0.0" | >= "3.5.0" & < "4.6-414" | >= "4.7-412" & < "4.7-414"
  67. merlin-lib < "4.8~5.1preview"
  68. mezzo
  69. minicaml
  70. minimal
  71. modelica_ml
  72. morbig < "0.10.3"
  73. msat = "0.8"
  74. mustache >= "3.0.0" & < "3.1.0"
  75. nice_parser
  76. nunchaku
  77. obelisk
  78. obrowser
  79. ocaml-lsp-server < "1.2.0"
  80. ocaml-r < "0.1.0"
  81. odate < "0.7"
  82. odds
  83. ollvm
  84. ollvm-tapir
  85. ometrics < "0.2.0"
  86. otoml
  87. ott >= "0.32"
  88. p4pp < "0.1.8"
  89. petr4
  90. phylogenetics
  91. profound
  92. psmt2-frontend < "0.3.0"
  93. rdf >= "0.6.0" & < "0.12.0"
  94. reason >= "3.0.3" & < "3.3.5"
  95. relit-reason
  96. rfsm
  97. runtime_events_tools >= "0.5.0"
  98. sail < "0.15"
  99. sgf
  100. shapefile
  101. sibylfs
  102. smbc < "0.4.2"
  103. smtlib-utils < "0.4"
  104. sociaml-vcard
  105. solidity-parser
  106. sqlgg
  107. stog-writing
  108. systemverilog
  109. tip-parser
  110. toml < "7.1.0"
  111. touist
  112. tptp >= "0.3.1"
  113. uuuu < "0.3.0"
  114. wcs-lib >= "2017-05-26.02"
  115. webidl != "1.2"
  116. why3 >= "1.0.0"
  117. why3-base >= "0.86.3"
  118. wikitext
  119. zanuda
  120. zephyrus
  121. zipperposition >= "1.1"

Conflicts

None