chore: remove all deps on menhir

This commit is contained in:
Simon Cruanes 2019-04-04 10:18:22 -05:00
parent f199dd50a6
commit 6bd3b2e67b
4 changed files with 7 additions and 15 deletions

View file

@ -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

View file

@ -1,2 +1 @@
(lang dune 1.1) (lang dune 1.1)
(using menhir 1.0)

View file

@ -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 }

View file

@ -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))