mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-07 11:45: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
|
||||
- opam switch ${OCAML_VERSION}
|
||||
- eval `opam config env`
|
||||
- opam install ocamlfind dune iter
|
||||
- opam install ocamlfind dune iter camlzip
|
||||
- if ${RUN_TEST}; then opam install containers ; fi
|
||||
install:
|
||||
- make build
|
||||
|
|
|
|||
|
|
@ -1,2 +1 @@
|
|||
(lang dune 1.1)
|
||||
(using menhir 1.0)
|
||||
|
|
|
|||
|
|
@ -21,21 +21,14 @@
|
|||
|
||||
prelude:
|
||||
| P CNF LIT LIT { () }
|
||||
| error
|
||||
{
|
||||
failwith @@ Format.asprintf "expected prelude %a" pp_pos ($startpos,$endpos)
|
||||
}
|
||||
|
||||
clauses:
|
||||
| l=clause* { l }
|
||||
| error
|
||||
{
|
||||
failwith @@ Format.asprintf "expected list of clauses %a"
|
||||
pp_pos ($startpos,$endpos)
|
||||
}
|
||||
| { [] }
|
||||
| clause clauses { $1 :: $2 }
|
||||
|
||||
file:
|
||||
| prelude l=clauses EOF { l }
|
||||
| prelude clauses EOF { $2 }
|
||||
|
||||
clause:
|
||||
| l=LIT+ ZERO { l }
|
||||
| ZERO { [] }
|
||||
| LIT clause { $1 :: $2 }
|
||||
|
|
|
|||
|
|
@ -10,5 +10,5 @@
|
|||
-unbox-closures -unbox-closures-factor 20)
|
||||
)
|
||||
|
||||
(menhir (modules Dimacs_parse))
|
||||
(ocamlyacc (modules Dimacs_parse))
|
||||
(ocamllex (modules Dimacs_lex))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue