/
Makefile
22 lines (20 loc) · 1018 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
all:
echo 'Extracting the actual grammar...'
./extract.py RascalRascal.rsc rascal.bgf
../../../shared/tools/validate bgf rascal.bgf
../../../shared/tools/subgrammar rascal.bgf Module PreModule Command rascal.true.bgf
../../../shared/tools/validate bgf rascal.true.bgf
../../../shared/tools/bgf2bnf rascal.bgf rascal.bnf
../../../shared/tools/bgf2bnf rascal.true.bgf rascal.true.bnf
../../../shared/tools/bgf2html rascal.true.bgf rascal.true.html
hor:
echo 'Recovering the horizontal grammar...'
../../../shared/tools/xbgf horizontalize.xbgf rascal.bgf rascal.hor.bgf
../../../shared/tools/validate bgf rascal.hor.bgf
../../../shared/tools/subgrammar rascal.hor.bgf Module PreModule Command rascal.true.hor.bgf
../../../shared/tools/validate bgf rascal.true.hor.bgf
../../../shared/tools/bgf2bnf rascal.hor.bgf rascal.hor.bnf
../../../shared/tools/bgf2bnf rascal.true.hor.bgf rascal.true.hor.bnf
../../../shared/tools/bgf2html rascal.true.hor.bgf rascal.true.hor.html
clean:
rm -f *.bgf *.bnf *.html