blob: 5df91c3a23d6c8acd4a1b88f2e906045845d459b (
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
|
all: ast.png
ast.png: Lexer.pm Tree.pm ParserTable.pm parser.pl input.txt
perl -I. Parser.pl input.txt > ast.gv
unflatten -f -l 10 -c 10 -o ast1.gv ast.gv
dot -Tpng ast1.gv > ast.png
rm ast.gv ast1.gv
build: ParserTable.pm
automake.dot: automake.y
bison --graph automake.y
rm automake.tab.c
unflatten -f -l 16 -c 9 -o automake1.dot automake.dot
dot -Tpng automake1.dot > automake.png
rm automake1.dot
automake.output: automake.y
bison --report=all automake.y
rm automake.tab.c
ParserTable.pm: automake.dot automake.output Converter.pl
perl -I. Converter.pl automake.output automake.dot > ParserTable.pm
test:
sh test.sh
|