Menhir allows to add arbitrary ocaml code to the end of the .mly file, where I want to declare a few functions. But I could not find a way to make menhir add my functions to the .mli file, so that they are visible from the other modules. Is it possible?
相关问题
- Writing an interpreter in OCaml [closed]
- Using Core.Std.List.fold_left without label
- See if key exists in a String Map
- Passing a string to a C library from OCaml using C
- Initialize Array to Blank custom type OCAML
相关文章
- ocaml %identity function
- Functors in Ocaml
- What is the easiest way to add an element to the e
- Explicit polymorphic type in record
- Interrupt a call in OCaml
- How to get the line number of an exception in OCam
- Using dynamic programming in Haskell? [Warning: Pr
- OCaml: Can't run utop after installing it
The answer is simple, it's no. The code defined in the
.mly
file is only used by the parser.As stated in the manual :