This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,7 @@
|
|||
%token EOF
|
||||
|
||||
%start<unit> unit
|
||||
%%
|
||||
|
||||
unit:
|
||||
| EOF { () }
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
(menhir
|
||||
(modules baz))
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
(lang dune 3.7)
|
||||
(using menhir 2.1)
|
||||
(name foo)
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
let () =
|
||||
Bar.Baz.unit (fun _ -> Bar.Baz.EOF) (Lexing.from_string "")
|
||||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue