File: parser.obuild

package info (click to toggle)
ocaml-obuild 0.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,456 kB
  • sloc: ml: 14,491; sh: 211; ansic: 34; makefile: 11
file content (18 lines) | stat: -rw-r--r-- 355 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
name: parser
version: 1.0
obuild-ver: 1

# Port ocamllex to custom generator
generator ocamllex
  suffix: mll
  command: ocamllex -o ${dest}.ml ${src}
  outputs: ${base}.ml

# Port ocamlyacc to custom generator
generator ocamlyacc
  suffix: mly
  command: ocamlyacc -b ${dest} ${src}
  outputs: ${base}.ml, ${base}.mli

executable main
  main-is: main.ml