45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
|
(ocamllex LexToken)
|
||
|
(ocamllex Lexer)
|
||
|
|
||
|
(menhir
|
||
|
(merge_into Parser)
|
||
|
(modules ParToken Parser)
|
||
|
(flags -la 1 --explain --external-tokens LexToken))
|
||
|
|
||
|
(library
|
||
|
(name parser_pascaligo)
|
||
|
(public_name ligo.parser.pascaligo)
|
||
|
(modules AST FQueue Markup pascaligo Utils Version Lexer Error Parser ParserLog LexToken)
|
||
|
(modules_without_implementation Error)
|
||
|
(libraries
|
||
|
hex
|
||
|
str
|
||
|
uutf
|
||
|
zarith
|
||
|
simple-utils
|
||
|
tezos-utils
|
||
|
)
|
||
|
(flags (:standard -open Simple_utils ))
|
||
|
)
|
||
|
|
||
|
;; 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))
|
||
|
|
||
|
(rule
|
||
|
(targets Version.ml)
|
||
|
(action
|
||
|
(progn (run "sh" "-c" "printf 'let version = \"%s\"'\\\\n \"$(echo UNKNOWN)\" > Version.ml")))
|
||
|
(mode promote-until-clean))
|