mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-07 19:55:41 -05:00
chore: remove all deps on menhir
This commit is contained in:
parent
f199dd50a6
commit
6bd3b2e67b
4 changed files with 7 additions and 15 deletions
|
|
@ -25,7 +25,7 @@ before_install:
|
||||||
- export OPAMVERBOSE=1
|
- export OPAMVERBOSE=1
|
||||||
- opam switch ${OCAML_VERSION}
|
- opam switch ${OCAML_VERSION}
|
||||||
- eval `opam config env`
|
- eval `opam config env`
|
||||||
- opam install ocamlfind dune iter
|
- opam install ocamlfind dune iter camlzip
|
||||||
- if ${RUN_TEST}; then opam install containers ; fi
|
- if ${RUN_TEST}; then opam install containers ; fi
|
||||||
install:
|
install:
|
||||||
- make build
|
- make build
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1 @@
|
||||||
(lang dune 1.1)
|
(lang dune 1.1)
|
||||||
(using menhir 1.0)
|
|
||||||
|
|
|
||||||
|
|
@ -21,21 +21,14 @@
|
||||||
|
|
||||||
prelude:
|
prelude:
|
||||||
| P CNF LIT LIT { () }
|
| P CNF LIT LIT { () }
|
||||||
| error
|
|
||||||
{
|
|
||||||
failwith @@ Format.asprintf "expected prelude %a" pp_pos ($startpos,$endpos)
|
|
||||||
}
|
|
||||||
|
|
||||||
clauses:
|
clauses:
|
||||||
| l=clause* { l }
|
| { [] }
|
||||||
| error
|
| clause clauses { $1 :: $2 }
|
||||||
{
|
|
||||||
failwith @@ Format.asprintf "expected list of clauses %a"
|
|
||||||
pp_pos ($startpos,$endpos)
|
|
||||||
}
|
|
||||||
|
|
||||||
file:
|
file:
|
||||||
| prelude l=clauses EOF { l }
|
| prelude clauses EOF { $2 }
|
||||||
|
|
||||||
clause:
|
clause:
|
||||||
| l=LIT+ ZERO { l }
|
| ZERO { [] }
|
||||||
|
| LIT clause { $1 :: $2 }
|
||||||
|
|
|
||||||
|
|
@ -10,5 +10,5 @@
|
||||||
-unbox-closures -unbox-closures-factor 20)
|
-unbox-closures -unbox-closures-factor 20)
|
||||||
)
|
)
|
||||||
|
|
||||||
(menhir (modules Dimacs_parse))
|
(ocamlyacc (modules Dimacs_parse))
|
||||||
(ocamllex (modules Dimacs_lex))
|
(ocamllex (modules Dimacs_lex))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue