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,6 @@
(menhir
(modules parser)
(mode promote))
(library
(name test))

View file

@ -0,0 +1,2 @@
(lang dune 1.7)
(using menhir 2.0)

View file

@ -0,0 +1,10 @@
%token <char> TOKEN
%token EOF
%start <char list> main
%%
main:
| c = TOKEN EOF { [c] }
| c = TOKEN xs = main { c :: xs }

View file

@ -0,0 +1,16 @@
Reproduction case for #1781, only the .ml and .mli should be promoted:
$ dune build @all
$ ls -1 _build/default | sort | grep mock
parser__mock.ml.mock
parser__mock.mli.inferred
$ ls -1 | grep mock
[1]
Check what is being generated exactly:
$ ls -1
_build
dune
dune-project
parser.ml
parser.mli
parser.mly