mirror of
https://github.com/ProgramSnail/pass_strategy_synthesis.git
synced 2026-03-12 02:57:09 +00:00
parser: init as ostap sample, modify dune file
This commit is contained in:
parent
9d2f508291
commit
3f6844835c
2 changed files with 293 additions and 0 deletions
31
lib/dune
31
lib/dune
|
|
@ -65,6 +65,25 @@
|
|||
-pp
|
||||
lib/pp5+gt+plugins+ocanren+dump.exe)))
|
||||
|
||||
(library
|
||||
(name parser)
|
||||
(modules parser)
|
||||
(flags
|
||||
; (-dsource)
|
||||
(:standard -rectypes))
|
||||
(libraries ostap GT)
|
||||
(preprocessor_deps ./pp5+gt+plugins+ostap+dump.exe)
|
||||
(wrapped false)
|
||||
(preprocess
|
||||
(pps
|
||||
ppx_expect
|
||||
ppx_inline_test
|
||||
GT.ppx
|
||||
GT.ppx_all
|
||||
--
|
||||
-pp
|
||||
lib/pp5+gt+plugins+ostap+dump.exe)))
|
||||
|
||||
(rule
|
||||
(targets pp5+gt+plugins+ocanren+dump.exe)
|
||||
(action
|
||||
|
|
@ -76,3 +95,15 @@
|
|||
logger.syntax,GT.syntax,GT.syntax.all,OCanren.syntax
|
||||
-o
|
||||
%{targets})))
|
||||
|
||||
(rule
|
||||
(targets pp5+gt+plugins+ostap+dump.exe)
|
||||
(action
|
||||
(run
|
||||
mkcamlp5.opt
|
||||
-package
|
||||
camlp5,camlp5.pa_o,camlp5.macro,camlp5.pr_dump,logger.syntax
|
||||
-package
|
||||
logger.syntax,GT.syntax,GT.syntax.all,ostap.syntax
|
||||
-o
|
||||
%{targets})))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue