Skip to content

Commit

Permalink
no need for custom sedlex hack (thanks to @diml)
Browse files Browse the repository at this point in the history
  • Loading branch information
smolkaj committed Mar 21, 2018
1 parent 0be3ecc commit 22a6279
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion frenetic.opam
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ depends: [
"ppx_metaquot"
"ppx_sexp_conv"
"ppx_tools_versioned"
"sedlex"
"sedlex" {>= "1.99.4"}
"sexplib"
"tcpip"
"yojson" {>= "1.2.0"}
Expand Down
File renamed without changes.
11 changes: 4 additions & 7 deletions src/lib/netkat/jbuild
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,15 @@
(deps (Tokens.mly))
(action (run ${bin:menhir} --only-tokens --infer ${<}))))

;; generate lexer -- temporary hack while ppx_sedlex and ppx_import are incompatible with jbuilder!!
;; generate lexer -- temporary hack while ppx_import is incompatible with jbuilder!!
(rule
((targets (Lexer.sedlex.ml))
(deps (Lexer.cppo.sedlex.ml Tokens.ml))
((targets (Lexer.ml))
(deps (Lexer.cppo.ml Tokens.ml))
(action (run ${bin:cppo} ${<} -n -o ${@}))))
(rule
((targets (Lexer.mli))
(deps (Lexer.cppo.mli Tokens.ml))
(action (run ${bin:cppo} ${<} -n -o ${@}))))
(rule
((targets (Lexer.ml))
(deps (Lexer.sedlex.ml))
(action (run ${lib:sedlex:ppx_sedlex} ${<} -o ${@}))))

;; generate parser
(menhir
Expand Down Expand Up @@ -70,6 +66,7 @@
ppx_fields_conv
ppx_sexp_conv
ppx_hash
sedlex.ppx
ocaml-migrate-parsetree.driver-main -no-check
)))
(flags (:standard -safe-string))
Expand Down

0 comments on commit 22a6279

Please sign in to comment.