2020-01-09 17:26:47 +04:00
|
|
|
;; Build of the lexer
|
|
|
|
|
2019-05-13 00:56:22 +04:00
|
|
|
(ocamllex LexToken)
|
|
|
|
|
2020-01-09 17:26:47 +04:00
|
|
|
;; Build of the parser
|
|
|
|
|
2019-05-13 00:56:22 +04:00
|
|
|
(menhir
|
2020-01-09 17:26:47 +04:00
|
|
|
(merge_into Parser)
|
|
|
|
(modules ParToken Parser)
|
|
|
|
(flags -la 1 --table --strict --external-tokens LexToken))
|
|
|
|
|
|
|
|
;; Build of the parser as a library
|
2019-05-13 00:56:22 +04:00
|
|
|
|
|
|
|
(library
|
2020-01-09 17:26:47 +04:00
|
|
|
(name parser_pascaligo)
|
|
|
|
(public_name ligo.parser.pascaligo)
|
|
|
|
(modules
|
|
|
|
SyntaxError AST pascaligo Parser ParserLog LexToken)
|
|
|
|
(libraries
|
|
|
|
menhirLib
|
|
|
|
parser_shared
|
|
|
|
hex
|
|
|
|
simple-utils
|
|
|
|
tezos-utils)
|
|
|
|
(preprocess
|
|
|
|
(pps bisect_ppx --conditional))
|
|
|
|
(flags (:standard -open Parser_shared -open Simple_utils)))
|
|
|
|
|
|
|
|
;; Build of the unlexer (for covering the
|
|
|
|
;; error states of the LR automaton)
|
|
|
|
|
|
|
|
(executable
|
|
|
|
(name Unlexer)
|
|
|
|
(libraries str)
|
|
|
|
(preprocess
|
|
|
|
(pps bisect_ppx --conditional))
|
|
|
|
(modules Unlexer))
|
|
|
|
|
|
|
|
;; Local build of a standalone lexer
|
2019-08-29 18:54:06 +04:00
|
|
|
|
|
|
|
(executable
|
|
|
|
(name LexerMain)
|
2019-11-06 20:23:49 +04:00
|
|
|
(libraries
|
2019-12-24 17:25:40 +04:00
|
|
|
hex simple-utils tezos-utils parser_pascaligo)
|
|
|
|
(modules LexerMain)
|
2019-12-11 22:07:52 +04:00
|
|
|
(preprocess
|
|
|
|
(pps bisect_ppx --conditional))
|
2019-12-17 20:03:43 +04:00
|
|
|
(flags (:standard -open Parser_shared -open Parser_pascaligo)))
|
2019-05-13 00:56:22 +04:00
|
|
|
|
2020-01-09 17:26:47 +04:00
|
|
|
;; Local build of a standalone parser
|
|
|
|
|
2019-09-27 17:33:25 +04:00
|
|
|
(executable
|
|
|
|
(name ParserMain)
|
2019-12-24 17:25:40 +04:00
|
|
|
(libraries parser_pascaligo)
|
|
|
|
(modules
|
2020-01-04 22:49:22 +04:00
|
|
|
ParErr ParserMain)
|
2019-12-11 22:07:52 +04:00
|
|
|
(preprocess
|
|
|
|
(pps bisect_ppx --conditional))
|
2019-12-17 20:03:43 +04:00
|
|
|
(flags (:standard -open Simple_utils -open Parser_shared -open Parser_pascaligo)))
|