2019-05-13 00:56:22 +04:00
|
|
|
(ocamllex LexToken)
|
|
|
|
|
|
|
|
(menhir
|
|
|
|
(merge_into Parser)
|
|
|
|
(modules ParToken Parser)
|
|
|
|
(flags -la 1 --explain --external-tokens LexToken))
|
|
|
|
|
|
|
|
(library
|
|
|
|
(name parser_pascaligo)
|
|
|
|
(public_name ligo.parser.pascaligo)
|
2019-08-29 18:54:06 +04:00
|
|
|
(modules AST pascaligo Parser ParserLog LexToken)
|
2019-05-13 00:56:22 +04:00
|
|
|
(libraries
|
2019-08-29 18:54:06 +04:00
|
|
|
parser_shared
|
|
|
|
hex
|
2019-05-13 00:56:22 +04:00
|
|
|
simple-utils
|
|
|
|
tezos-utils
|
|
|
|
)
|
2019-08-29 18:54:06 +04:00
|
|
|
(flags (:standard -open Parser_shared -open Simple_utils))
|
|
|
|
)
|
|
|
|
|
|
|
|
(executable
|
|
|
|
(name LexerMain)
|
|
|
|
(libraries
|
|
|
|
hex
|
|
|
|
simple-utils
|
|
|
|
tezos-utils
|
|
|
|
parser_pascaligo)
|
|
|
|
(modules
|
|
|
|
LexerMain
|
|
|
|
)
|
|
|
|
(flags (:standard -open Parser_shared -open Parser_pascaligo))
|
2019-05-13 00:56:22 +04:00
|
|
|
)
|
|
|
|
|
2019-09-27 17:33:25 +04:00
|
|
|
(executable
|
|
|
|
(name ParserMain)
|
|
|
|
(libraries
|
|
|
|
parser_pascaligo)
|
|
|
|
(modules
|
|
|
|
ParserMain
|
|
|
|
)
|
|
|
|
(flags (:standard -open Simple_utils -open Parser_shared -open Parser_pascaligo))
|
|
|
|
)
|
|
|
|
|
2019-05-13 00:56:22 +04:00
|
|
|
;; Les deux directives (rule) qui suivent sont pour le dev local.
|
|
|
|
;; Il suffit de faire "dune build Parser.exe" pour avoir un Parser.exe dans le dossier.
|
|
|
|
;; Pour le purger, il faut faire "dune clean".
|
|
|
|
;(rule
|
|
|
|
; (targets Parser.exe)
|
|
|
|
; (deps ParserMain.exe)
|
|
|
|
; (action (copy ParserMain.exe Parser.exe))
|
|
|
|
; (mode promote-until-clean))
|
|
|
|
|
|
|
|
;(rule
|
|
|
|
; (targets Lexer.exe)
|
|
|
|
; (deps LexerMain.exe)
|
|
|
|
; (action (copy LexerMain.exe Lexer.exe))
|
|
|
|
; (mode promote-until-clean))
|