aboutsummaryrefslogtreecommitdiff
path: root/lib/dune
blob: 5717f90140f9b7ec2b8fae45a4c9a2a432da9090 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
(library
 (name qparser)
 (libraries 
   qsp_syntax
   menhirLib
   )
 (preprocess (pps 
   sedlex.ppx
   ))
 )


(rule
 (targets parser_messages.ml)
 (deps expression_parser.messages tokens.mly qsp_expression.mly qsp_instruction.mly parser.mly)
 (action  (with-stdout-to %{targets} (run menhir --base parser.mly --compile-errors %{deps}))))

(menhir
  (modules tokens)
  (flags --only-tokens)
)


(menhir 
  (modules tokens parser qsp_instruction qsp_expression)
  (flags --table --external-tokens Tokens)
  (merge_into parser)
)