Skip to content

Commit

Permalink
Change to Use Waf Tools
Browse files Browse the repository at this point in the history
Change from custom nodes to use the waf flex/ bison tools.
  • Loading branch information
jimtahu committed Jun 21, 2016
1 parent 5a2baa1 commit 7c81c87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion LangS.l
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define YYSTYPE ParseTree::Node*

#include "ParseTree.h"
#include "LangS.tab.hpp"
#include "LangS.tab.h"

void yyerror(std::string s);

Expand Down
File renamed without changes.
10 changes: 2 additions & 8 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@ def options(ctx):
ctx.load('compiler_cxx')

def configure(ctx):
ctx.load('compiler_cxx')
ctx.find_program('flex', var='FLEX')
ctx.find_program('bison', var='BISON')
ctx.load('compiler_cxx flex bison')

def build(bld):
sources = bld.path.ant_glob('*.cpp') + ['LangS.tab.cpp', 'LangS.yy.cpp' ]
bld(rule = '${FLEX} -o ${TGT} ${SRC}', source= 'LangS.l', target = 'LangS.yy.cpp')
bld(rule = '${BISON} -d ${SRC}', source= 'LangS.ypp', target = ['LangS.tab.cpp','LangS.tab.hpp'])
sources = bld.path.ant_glob('*.cpp') + ['LangS.l', 'LangS.y' ]
langs = bld(features='c cxx cxxprogram', source=sources, target='LangS', includes='.')


0 comments on commit 7c81c87

Please sign in to comment.