bison¶
The bison program is a code generator which creates C or C++ files. The generated files are compiled into object files.
-
waflib.Tools.bison.extension(*k)¶ Decorator that registers a task generator method which will be invoked during the processing of source files for the extension given:
from waflib import Task class mytask(Task): run_str = 'cp ${SRC} ${TGT}' @extension('.moo') def create_maa_file(self, node): self.create_task('mytask', node, node.change_ext('.maa')) def build(bld): bld(source='foo.moo')
-
class
waflib.Tools.bison.bison(*k, **kw)[source]¶ Compiles bison files
-
color= 'BLUE'¶
-
ext_out= ['.h']¶
-
hasrun¶
-
generator¶
-
env¶
-
inputs¶
-
outputs¶
-
dep_nodes¶
-
run_after¶
-
hcode= b'${BISON} ${BISONFLAGS} ${SRC[0].abspath()} -o ${TGT[0].name}'¶
-
orig_run_str= '${BISON} ${BISONFLAGS} ${SRC[0].abspath()} -o ${TGT[0].name}'¶
-
vars= ['BISON', 'BISONFLAGS']¶
-