From 01c1728501f05ed76ed848537316314ff62f0e76 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 15 Jan 2012 21:39:54 +1000 Subject: Re-arrange lemon to run before frex due to dependencies. --- LuaSL/build.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'LuaSL') diff --git a/LuaSL/build.sh b/LuaSL/build.sh index 3b6c64c..38f09f6 100755 --- a/LuaSL/build.sh +++ b/LuaSL/build.sh @@ -75,13 +75,12 @@ names="LuaSL_LSL_tree LuaSL_lexer LuaSL_lemon_yaccer" LFLAGS="-d" -# Hmmm, we have a circular dependencie with the include fiels each of flex and btyacc generate. So run lemon twice? - -command="flex -C --outfile=LuaSL_lexer.c --header-file=LuaSL_lexer.h LuaSL_lexer.l" +# Run lemon first, flex depends on it to define the symbol values. +command="lemon -s LuaSL_lemon_yaccer.y" echo $command $command -command="lemon -s LuaSL_lemon_yaccer.y" +command="flex -C --outfile=LuaSL_lexer.c --header-file=LuaSL_lexer.h LuaSL_lexer.l" echo $command $command -- cgit v1.1