This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,28 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue