mte/unikernel/duniverse/dune_/test/blackbox-tests/test-cases/menhir/library-interface.t
2025-11-11 02:07:51 +01:00

28 lines
434 B
Raku

We should be able to use menhir as a library interface:
$ cat >dune-project <<EOF
> (lang dune 3.11)
> (using menhir 2.1)
> EOF
$ cat >dune <<EOF
> (include_subdirs qualified)
> (library (name foo))
> (menhir (modules foo))
> EOF
$ cat > m.ml << EOF
> let x = ()
> EOF
$ cat >foo.mly <<EOF
> %token EOF
>
> %start<unit> unit
> %%
>
> unit:
> | EOF { M.x }
> EOF
$ dune build foo.cma