aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/build.sh
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-12 03:14:17 +1000
committerDavid Walter Seikel2012-01-12 03:14:17 +1000
commitfc5d487de27aa7aa17502008c848d06758223888 (patch)
tree8f3007f53f49c146ae6c30a100decd3b3a0af1dd /LuaSL/build.sh
parentLeaf cloner. (diff)
downloadSledjHamr-fc5d487de27aa7aa17502008c848d06758223888.zip
SledjHamr-fc5d487de27aa7aa17502008c848d06758223888.tar.gz
SledjHamr-fc5d487de27aa7aa17502008c848d06758223888.tar.bz2
SledjHamr-fc5d487de27aa7aa17502008c848d06758223888.tar.xz
Switch to the lemon parser.
Diffstat (limited to '')
-rwxr-xr-xLuaSL/build.sh15
1 files changed, 4 insertions, 11 deletions
diff --git a/LuaSL/build.sh b/LuaSL/build.sh
index 4a026bb..3b6c64c 100755
--- a/LuaSL/build.sh
+++ b/LuaSL/build.sh
@@ -51,7 +51,7 @@ names="LuaSL_main LuaSL_compile LuaSL_utilities"
51 51
52EDJE_FLAGS="-id images -fd fonts" 52EDJE_FLAGS="-id images -fd fonts"
53 53
54rm -f ../LuaSL ../LuaSL_parser ../*.o *.output *.backup ../*.edj LuaSL_lexer.h LuaSL_lexer.c LuaSL_yaccer.h LuaSL_yaccer.tab.c 54rm -f ../LuaSL ../LuaSL_parser ../*.o *.output *.backup ../*.edj LuaSL_lexer.h LuaSL_lexer.c LuaSL_lemon_yaccer.h LuaSL_lemon_yaccer.c LuaSL_lemon_yaccer.out
55command="edje_cc $EDJE_FLAGS LuaSL.edc ../LuaSL.edj" 55command="edje_cc $EDJE_FLAGS LuaSL.edc ../LuaSL.edj"
56echo $command 56echo $command
57$command 57$command
@@ -71,27 +71,20 @@ $command
71 71
72 72
73 73
74names="LuaSL_LSL_tree LuaSL_lexer LuaSL_yaccer.tab" 74names="LuaSL_LSL_tree LuaSL_lexer LuaSL_lemon_yaccer"
75 75
76LFLAGS="-d" 76LFLAGS="-d"
77 77
78# Hmmm, we have a circular dependencie with the include fiels each of flex and btyacc generate. So run btyacc twice. 78# Hmmm, we have a circular dependencie with the include fiels each of flex and btyacc generate. So run lemon twice?
79
80# I want to remove -d, coz I want an enum, not a bunch of #defines, but btyacc creates #defines internally anyway. sigh
81command="btyacc -d -t -v -b LuaSL_yaccer -S btyacc-c.ske LuaSL_yaccer.y"
82echo $command
83$command
84 79
85command="flex -C --outfile=LuaSL_lexer.c --header-file=LuaSL_lexer.h LuaSL_lexer.l" 80command="flex -C --outfile=LuaSL_lexer.c --header-file=LuaSL_lexer.h LuaSL_lexer.l"
86echo $command 81echo $command
87$command 82$command
88 83
89# I want to remove -d, coz I want an enum, not a bunch of #defines, but btyacc creates #defines internally anyway. sigh 84command="lemon -s LuaSL_lemon_yaccer.y"
90command="btyacc -d -t -v -b LuaSL_yaccer -S btyacc-c.ske LuaSL_yaccer.y"
91echo $command 85echo $command
92$command 86$command
93 87
94
95objects="" 88objects=""
96for i in $names 89for i in $names
97do 90do