aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/build.sh
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-05 04:47:56 +1000
committerDavid Walter Seikel2012-01-05 04:47:56 +1000
commitd4b977d0904a1dea37922dac60d3bb37f9769230 (patch)
treee5f23ddd6a6dd880f770c897fa9c11e67c4c79cf /LuaSL/build.sh
parentAdd a compiler stub. (diff)
downloadSledjHamr-d4b977d0904a1dea37922dac60d3bb37f9769230.zip
SledjHamr-d4b977d0904a1dea37922dac60d3bb37f9769230.tar.gz
SledjHamr-d4b977d0904a1dea37922dac60d3bb37f9769230.tar.bz2
SledjHamr-d4b977d0904a1dea37922dac60d3bb37f9769230.tar.xz
Add a simple flex + btyacc stub.
Will be fleshed out soon with LSL grammer.
Diffstat (limited to 'LuaSL/build.sh')
-rwxr-xr-xLuaSL/build.sh27
1 files changed, 26 insertions, 1 deletions
diff --git a/LuaSL/build.sh b/LuaSL/build.sh
index 6aba3a0..9f2420b 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 *.o *.edj 54rm -f ../LuaSL ../LuaSL_parser *.o *.edj LuaSL_lexer.h LuaSL_lexer.c LuaSL_yaccer.h LuaSL_yaccer.tab.c
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
@@ -69,3 +69,28 @@ command="gcc $CFLAGS -o ../LuaSL $objects $LDFLAGS $libs"
69echo $command 69echo $command
70$command 70$command
71 71
72
73
74names="LuaSL_parser LuaSL_LSL_tree LuaSL_lexer LuaSL_yaccer.tab"
75
76command="flex --outfile=LuaSL_lexer.c --header-file=LuaSL_lexer.h LuaSL_lexer.l"
77echo $command
78$command
79
80command="btyacc -d -b LuaSL_yaccer -S btyacc-c.ske LuaSL_yaccer.y"
81echo $command
82$command
83
84objects=""
85for i in $names
86do
87 command="gcc $CFLAGS -c -o ../$i.o $i.c"
88 echo $command
89 $command
90 objects="$objects ../$i.o"
91done
92
93command="gcc $CFLAGS -o ../LuaSL_parser $objects $LDFLAGS $libs"
94echo $command
95$command
96