The bison program is a code generator which creates C or C++ files. The generated files are compiled into object files.
Bases: waflib.Task.Task
Compile bison files
Create a bison task, which must be executed from the directory of the output file.
Decorator: register 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')