first try
This commit is contained in:
parent
c5d1b74c00
commit
c8339ed2ef
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@ Version.ml
|
||||
**/.DS_Store
|
||||
.vscode/
|
||||
/ligo.install
|
||||
/_coverage/
|
||||
|
@ -11,6 +11,7 @@ depends: [
|
||||
"ocamlfind" { build }
|
||||
"dune" { build & = "1.11.4" }
|
||||
"menhir" { = "20190626" }
|
||||
"bisect_ppx" {dev & >= "2.0.0"}
|
||||
"ppx_let"
|
||||
"ppx_deriving"
|
||||
"ppx_expect"
|
||||
@ -20,7 +21,10 @@ depends: [
|
||||
"alcotest" { with-test }
|
||||
"getopt"
|
||||
# work around upstream in-place update
|
||||
"ocaml-migrate-parsetree" { = "1.3.1" }
|
||||
"ocaml-migrate-parsetree" { = "1.4.0" }
|
||||
]
|
||||
pin-depends: [
|
||||
["bisect_ppx.git" "git+https://github.com/aantron/bisect_ppx.git"]
|
||||
]
|
||||
build: [
|
||||
[ "dune" "build" "-p" name "-j" jobs ]
|
||||
|
@ -7,7 +7,7 @@
|
||||
)
|
||||
(modules cli cli_helpers version)
|
||||
(preprocess
|
||||
(pps ppx_let)
|
||||
(pps ppx_let bisect_ppx --conditional)
|
||||
)
|
||||
(flags (:standard -open Simple_utils))
|
||||
)
|
||||
|
@ -2,5 +2,5 @@
|
||||
(name cli_expect_tests)
|
||||
(libraries simple-utils cli)
|
||||
(inline_tests)
|
||||
(preprocess (pps ppx_let ppx_expect))
|
||||
(preprocess (pps ppx_let ppx_expect bisect_ppx --conditional))
|
||||
(flags (:standard -open Simple_utils)))
|
||||
|
2
src/dune
2
src/dune
@ -9,6 +9,6 @@
|
||||
main
|
||||
)
|
||||
(preprocess
|
||||
(pps ppx_let)
|
||||
(pps ppx_let bisect_ppx --conditional)
|
||||
)
|
||||
)
|
||||
|
@ -18,7 +18,7 @@
|
||||
self_michelson
|
||||
)
|
||||
(preprocess
|
||||
(pps ppx_let)
|
||||
(pps ppx_let bisect_ppx --conditional)
|
||||
)
|
||||
(flags (:standard -w +1..62-4-9-44-40-42-48-30@39@33 -open Simple_utils -open Tezos_utils ))
|
||||
)
|
||||
|
@ -7,7 +7,7 @@
|
||||
uncompile
|
||||
)
|
||||
(preprocess
|
||||
(pps ppx_let)
|
||||
(pps ppx_let bisect_ppx --conditional)
|
||||
)
|
||||
(flags (:standard -w +1..62-4-9-44-40-42-48-30@39@33 -open Simple_utils -open Tezos_utils ))
|
||||
)
|
||||
|
@ -17,7 +17,7 @@
|
||||
compile
|
||||
)
|
||||
(preprocess
|
||||
(pps ppx_let)
|
||||
(pps ppx_let bisect_ppx --conditional)
|
||||
)
|
||||
(flags (:standard -w +1..62-4-9-44-40-42-48-30@39@33 -open Simple_utils -open Tezos_utils ))
|
||||
)
|
||||
|
@ -11,7 +11,7 @@
|
||||
transpiler
|
||||
)
|
||||
(preprocess
|
||||
(pps ppx_let)
|
||||
(pps ppx_let bisect_ppx --conditional)
|
||||
)
|
||||
(flags (:standard -w +1..62-4-9-44-40-42-48-30@39@33 -open Simple_utils -open Tezos_utils ))
|
||||
)
|
||||
|
@ -15,8 +15,11 @@
|
||||
str
|
||||
simple-utils
|
||||
tezos-utils
|
||||
getopt)
|
||||
(flags (:standard -open Simple_utils -open Parser_shared )))
|
||||
getopt )
|
||||
(preprocess
|
||||
(pps bisect_ppx --conditional) )
|
||||
(flags (:standard -open Simple_utils -open Parser_shared ))
|
||||
)
|
||||
|
||||
(executable
|
||||
(name LexerMain)
|
||||
|
@ -10,7 +10,7 @@
|
||||
parser_reasonligo
|
||||
)
|
||||
(preprocess
|
||||
(pps ppx_let)
|
||||
(pps ppx_let bisect_ppx --conditional)
|
||||
)
|
||||
(flags (:standard -w +1..62-4-9-44-40-42-48-30@39@33 -open Simple_utils -open Parser_shared))
|
||||
)
|
||||
|
@ -10,12 +10,17 @@
|
||||
(public_name ligo.parser.pascaligo)
|
||||
(modules AST pascaligo Parser ParserLog LexToken)
|
||||
(libraries
|
||||
menhirLib
|
||||
parser_shared
|
||||
hex
|
||||
simple-utils
|
||||
tezos-utils)
|
||||
(flags (:standard -open Parser_shared -open Simple_utils)))
|
||||
menhirLib
|
||||
parser_shared
|
||||
hex
|
||||
simple-utils
|
||||
tezos-utils
|
||||
)
|
||||
(preprocess
|
||||
(pps bisect_ppx --conditional)
|
||||
)
|
||||
(flags (:standard -open Parser_shared -open Simple_utils))
|
||||
)
|
||||
|
||||
(executable
|
||||
(name LexerMain)
|
||||
|
@ -16,8 +16,13 @@
|
||||
str
|
||||
simple-utils
|
||||
tezos-utils
|
||||
getopt)
|
||||
(flags (:standard -open Simple_utils -open Parser_shared -open Parser_cameligo)))
|
||||
getopt
|
||||
)
|
||||
(preprocess
|
||||
(pps bisect_ppx --conditional)
|
||||
)
|
||||
(flags (:standard -open Simple_utils -open Parser_shared -open Parser_cameligo ))
|
||||
)
|
||||
|
||||
(executable
|
||||
(name LexerMain)
|
||||
|
@ -7,7 +7,11 @@
|
||||
simple-utils
|
||||
uutf
|
||||
getopt
|
||||
zarith)
|
||||
zarith
|
||||
)
|
||||
(preprocess
|
||||
(pps bisect_ppx --conditional)
|
||||
)
|
||||
(modules
|
||||
Lexer
|
||||
LexerLog
|
||||
|
@ -12,6 +12,7 @@
|
||||
(preprocess
|
||||
(pps
|
||||
ppx_let
|
||||
bisect_ppx --conditional
|
||||
)
|
||||
)
|
||||
(flags (:standard -w +1..62-4-9-44-40-42-48-30@39@33 -open Simple_utils ))
|
||||
|
@ -6,7 +6,7 @@
|
||||
ast_simplified
|
||||
)
|
||||
(preprocess
|
||||
(pps ppx_let)
|
||||
(pps ppx_let bisect_ppx --conditional)
|
||||
)
|
||||
(flags (:standard -w +1..62-4-9-44-40-42-48-30@39@33 -open Simple_utils ))
|
||||
)
|
||||
|
@ -11,7 +11,7 @@
|
||||
operators
|
||||
)
|
||||
(preprocess
|
||||
(pps ppx_let)
|
||||
(pps ppx_let bisect_ppx --conditional)
|
||||
)
|
||||
(flags (:standard -w +1..62-4-9-44-40-42-48-30@39@33 -open Simple_utils ))
|
||||
)
|
||||
|
@ -10,7 +10,7 @@
|
||||
operators
|
||||
)
|
||||
(preprocess
|
||||
(pps ppx_let)
|
||||
(pps ppx_let bisect_ppx --conditional)
|
||||
)
|
||||
(flags (:standard -w +1..62-4-9-44-40-42-48-30@39@33 -open Simple_utils ))
|
||||
)
|
||||
|
@ -6,7 +6,7 @@
|
||||
)
|
||||
(inline_tests)
|
||||
(preprocess
|
||||
(pps ppx_let ppx_expect)
|
||||
(pps ppx_let ppx_expect bisect_ppx --conditional)
|
||||
)
|
||||
(flags (:standard -w +1..62-4-9-44-40-42-48-30@39@33 -open Simple_utils ))
|
||||
)
|
||||
|
@ -9,7 +9,7 @@
|
||||
operators
|
||||
)
|
||||
(preprocess
|
||||
(pps ppx_let)
|
||||
(pps ppx_let bisect_ppx --conditional)
|
||||
)
|
||||
(flags (:standard -w +1..62-4-9-44-40-42-48-30@39@33 -open Simple_utils -open Tezos_utils ))
|
||||
)
|
||||
|
@ -6,7 +6,7 @@
|
||||
tezos-utils
|
||||
)
|
||||
(preprocess
|
||||
(pps ppx_let)
|
||||
(pps ppx_let bisect_ppx --conditional)
|
||||
)
|
||||
(flags (:standard -w +1..62-4-9-44-40-42-48-30@39@33 -open Simple_utils ))
|
||||
)
|
||||
|
@ -9,7 +9,7 @@
|
||||
mini_c
|
||||
)
|
||||
(preprocess
|
||||
(pps ppx_let)
|
||||
(pps ppx_let bisect_ppx --conditional)
|
||||
)
|
||||
(flags (:standard -open Simple_utils ))
|
||||
)
|
||||
|
@ -7,7 +7,7 @@
|
||||
stage_common
|
||||
)
|
||||
(preprocess
|
||||
(pps ppx_let)
|
||||
(pps ppx_let bisect_ppx --conditional)
|
||||
)
|
||||
(flags (:standard -open Simple_utils ))
|
||||
)
|
||||
|
@ -8,7 +8,7 @@
|
||||
stage_common
|
||||
)
|
||||
(preprocess
|
||||
(pps ppx_let)
|
||||
(pps ppx_let bisect_ppx --conditional)
|
||||
)
|
||||
(flags (:standard -open Simple_utils))
|
||||
)
|
||||
|
@ -7,7 +7,7 @@
|
||||
)
|
||||
(inline_tests)
|
||||
(preprocess
|
||||
(pps ppx_let ppx_expect)
|
||||
(pps ppx_let ppx_expect bisect_ppx --conditional)
|
||||
)
|
||||
(flags (:standard -open Simple_utils))
|
||||
)
|
||||
|
@ -7,6 +7,6 @@
|
||||
stage_common
|
||||
)
|
||||
(inline_tests)
|
||||
(preprocess (pps ppx_expect ppx_let))
|
||||
(preprocess (pps ppx_expect ppx_let bisect_ppx --conditional))
|
||||
(flags (:standard -w +1..62-4-9-44-40-42-48-30@39@33 -open Simple_utils ))
|
||||
)
|
||||
|
@ -8,7 +8,7 @@
|
||||
mini_c
|
||||
)
|
||||
(preprocess
|
||||
(pps ppx_let)
|
||||
(pps ppx_let bisect_ppx --conditional)
|
||||
)
|
||||
(flags (:standard -w +1..62-4-9-44-40-42-48-30@39@33 -open Simple_utils ))
|
||||
)
|
||||
|
@ -7,7 +7,7 @@
|
||||
tezos-crypto
|
||||
)
|
||||
(preprocess
|
||||
(pps ppx_let)
|
||||
(pps ppx_let bisect_ppx --conditional)
|
||||
)
|
||||
(flags (:standard -w +1..62-4-9-44-40-42-48@39@33 -open Simple_utils ))
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user