package menhir

  1. Overview
  2. Docs
LR(1) parser generator

Install

Dune Dependency

Authors

Maintainers

Sources

menhir-20171206.tar.gz
sha256=c4ed86f2d02d72183e3422ff1700276925fe6cfa2f22900f3d30f23dce8e9c77
md5=c86ee287c1dbda1d080d2ca3a3ad1271

Description

Published: 06 Dec 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.8" & < "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. dune >= "3.17.0"
  31. edn < "0.2.0"
  32. electrod
  33. electrumAnalyzer
  34. embedded_ocaml_templates < "0.3.1"
  35. encoding < "0.0.2"
  36. erlang
  37. FrontC = "4.0.0"
  38. forester != "2.1" & < "3.0.0"
  39. frama-c-luncov >= "0.2.1"
  40. frenetic >= "5.0.0" & < "5.0.5"
  41. fstar >= "0.9.5.0"
  42. gadelac
  43. gdb
  44. gdbprofiler < "0.4"
  45. genet != "0.2"
  46. gobba >= "0.4.2"
  47. gufo
  48. heptagon >= "1.01.00"
  49. imaplet-lwt
  50. inferno >= "20220603"
  51. jasmin
  52. js_of_ocaml >= "1.4.0" & < "3.0"
  53. js_of_ocaml-compiler >= "3.7.0"
  54. karamel
  55. kdl
  56. kind2 < "1.6.0"
  57. kremlin < "transition"
  58. labrys
  59. lambdapi < "2.0.0"
  60. lambdoc
  61. libzipperposition
  62. lilis
  63. links >= "0.9" & < "0.9.4"
  64. logtk >= "1.5.1"
  65. lp < "0.4.0"
  66. lsp < "1.8.0"
  67. mazeppa < "0.4.1"
  68. mc2
  69. merlin < "2.0.0" | >= "3.5.0" & < "4.6-414" | >= "4.7-412" & < "4.7-414"
  70. merlin-lib < "4.8~5.1preview"
  71. mezzo
  72. minicaml < "0.3.3"
  73. minimal
  74. modelica_ml
  75. morbig < "0.10.3"
  76. msat = "0.8"
  77. mustache >= "3.0.0" & < "3.1.0"
  78. nice_parser
  79. nunchaku
  80. obelisk < "0.7.0"
  81. obrowser
  82. ocaml-lsp-server < "1.2.0"
  83. ocaml-r < "0.1.0"
  84. odate < "0.7"
  85. odds
  86. ollvm
  87. ollvm-tapir
  88. ometrics < "0.2.0"
  89. otoml
  90. ott >= "0.32"
  91. p4pp < "0.1.8"
  92. petr4
  93. phylogenetics
  94. profound
  95. psmt2-frontend < "0.3.0"
  96. rdf >= "0.6.0" & < "0.12.0"
  97. relit-reason
  98. rfsm
  99. runtime_events_tools >= "0.5.0"
  100. sail < "0.15"
  101. sgf
  102. shapefile
  103. sibylfs
  104. smbc < "0.4.2"
  105. smtlib-utils < "0.4"
  106. sociaml-vcard
  107. solidity-parser
  108. sqlgg < "20231201"
  109. stog-writing
  110. systemverilog
  111. tip-parser
  112. toml < "7.1.0"
  113. touist
  114. tptp >= "0.3.1"
  115. uuuu < "0.3.0"
  116. wcs-lib >= "2017-05-26.02"
  117. webidl != "1.2"
  118. why3 >= "1.0.0" & < "1.8.0"
  119. why3-base >= "0.86.3"
  120. wikitext
  121. zanuda
  122. zephyrus
  123. zipperposition >= "1.1"

Conflicts

None

OCaml

Innovation. Community. Security.