This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,7 @@
%token EOF
%start<unit> unit
%%
unit:
| EOF { () }

View file

@ -0,0 +1,2 @@
(menhir
(modules baz))

View file

@ -0,0 +1,3 @@
(lang dune 3.7)
(using menhir 2.1)
(name foo)

View file

@ -0,0 +1,2 @@
let () =
Bar.Baz.unit (fun _ -> Bar.Baz.EOF) (Lexing.from_string "")

View file

@ -0,0 +1,19 @@
The use of (include_subdirs qualified) should be compatible with the use of
Menhir in other places than the root of the file hierarchy.
$ test() {
> cat >dune <<EOF
> (include_subdirs $1)
> (executable (name foo))
> EOF
> dune build foo.exe
> }
$ test unqualified
File "foo.ml", line 2, characters 2-14:
2 | Bar.Baz.unit (fun _ -> Bar.Baz.EOF) (Lexing.from_string "")
^^^^^^^^^^^^
Error: Unbound module Bar
Hint: Did you mean Baz?
[1]
$ test qualified