2020-04-07 20:33:46 +04:00
|
|
|
;; Building the preprocessor as a library
|
2020-01-27 19:05:47 +04:00
|
|
|
|
|
|
|
(library
|
2020-03-31 21:44:10 +04:00
|
|
|
(name Preprocessor)
|
2020-04-07 20:33:46 +04:00
|
|
|
(public_name Preprocessor)
|
|
|
|
(wrapped true)
|
2020-03-23 22:43:06 +04:00
|
|
|
(libraries
|
|
|
|
getopt
|
|
|
|
simple-utils)
|
2020-03-24 21:52:00 +04:00
|
|
|
(modules EvalOpt E_Parser E_Lexer E_AST Preproc)
|
|
|
|
(preprocess
|
|
|
|
(pps bisect_ppx --conditional)))
|
2020-01-27 19:05:47 +04:00
|
|
|
|
2020-04-07 20:33:46 +04:00
|
|
|
;; Building the lexers of the preprocessor
|
|
|
|
|
|
|
|
(ocamllex
|
|
|
|
E_Lexer Preproc)
|
|
|
|
|
|
|
|
;; Building the parser of the preprocessor (for boolean expressions)
|
|
|
|
|
|
|
|
(menhir
|
|
|
|
(modules E_Parser))
|
|
|
|
|
|
|
|
;; Building PreprocMain.exe for a standalone preprocessor
|
|
|
|
|
2020-03-24 21:52:00 +04:00
|
|
|
(executable
|
|
|
|
(name PreprocMain)
|
|
|
|
(modules PreprocMain)
|
2020-04-09 18:18:26 +04:00
|
|
|
(libraries Preprocessor)
|
2020-03-24 21:52:00 +04:00
|
|
|
(preprocess
|
|
|
|
(pps bisect_ppx --conditional)))
|
2020-01-27 19:05:47 +04:00
|
|
|
|
2020-04-07 20:33:46 +04:00
|
|
|
;; Building E_LexerMain.exe for a standalone lexer of boolean
|
|
|
|
;; expressions
|
|
|
|
|
2020-03-24 21:52:00 +04:00
|
|
|
(executable
|
|
|
|
(name E_LexerMain)
|
|
|
|
(modules E_LexerMain)
|
|
|
|
(libraries Preproc)
|
|
|
|
(preprocess
|
|
|
|
(pps bisect_ppx --conditional)))
|
|
|
|
|
2020-04-07 20:33:46 +04:00
|
|
|
;; Building E_ParserMain.exe for a standalone parser of boolean
|
|
|
|
;; expressions
|
|
|
|
|
2020-03-24 21:52:00 +04:00
|
|
|
(executable
|
|
|
|
(name E_ParserMain)
|
|
|
|
(modules E_ParserMain)
|
|
|
|
(libraries Preproc)
|
|
|
|
(preprocess
|
|
|
|
(pps bisect_ppx --conditional)))
|