|
@@ -5806,6 +5806,7 @@ macro _SRC("xs", SRC, SRCFLAGS...) {
|
|
|
macro _SRC("y", SRC, SRCFLAGS...) {
|
|
|
# .CMD=${tool:"contrib/tools/byacc"} $BYACC_FLAGS ${nopath;noext;output:SRC.cpp} ${input:SRC} ${nopath;noext;hide;output;addincl:SRC.h} ${kv;hide:"p YC"} ${kv;hide:"pc light-green"}
|
|
|
.CMD=${tool:"contrib/tools/bison/bison"} $BISON_FLAGS --m4=${tool:"contrib/tools/bison/m4"} -d -o ${nopath;noext;output;main;hide:SRC.h} ${nopath;noext;output:SRC.cpp} ${input:SRC} ${SRCFLAGS} && $YMAKE_PYTHON ${input:"build/scripts/preprocess.py"} $_ADD_HIDDEN_INPUTS($CPP_BISON_SKELS) ${nopath;noext;output;addincl:SRC.h} ${kv;hide:"p YC"} ${kv;hide:"pc light-green"}
|
|
|
+ .SEM=target_bison_parser PRIVATE ${input:SRC} ${output;nopath;noext;hide;suf=.o:SRC} ${nopath;noext;output;hide:SRC.h} ${nopath;noext;output;addincl;hide:SRC.h} && set_global_flags BISON_FLAGS $BISON_FLAGS && conan_require bison/3.5.3 && conan_import '"bin, bison* -> ./bin"'
|
|
|
}
|
|
|
|
|
|
# tag:src-processing
|
|
@@ -5843,6 +5844,7 @@ macro _SRC("rl6", SRC, SRCFLAGS...) {
|
|
|
macro _SRC("l", SRC, SRCFLAGS...) {
|
|
|
.CMD=${tool:"contrib/tools/flex-old"} $LEX_FLAGS ${SRCFLAGS} -o${output:SRC.cpp} ${output_include;hide:"util/system/compiler.h"} ${input:SRC} ${kv;hide:"p LX"} ${kv;hide:"pc yellow"}
|
|
|
.ADDINCL=contrib/tools/flex-old
|
|
|
+ .SEM=target_flex_lexers ${tool;hide:"contrib/tools/flex-old"} ${output;hide;suf=.o:SRC} ${input:SRC} && set_global_flags LEX_FLAGS $LEX_FLAGS
|
|
|
}
|
|
|
|
|
|
# tag:src-processing
|