Internals: Convert bisonpre to python3

This commit is contained in:
Wilson Snyder 2021-01-10 22:53:59 -05:00
parent d4d9e12b66
commit bd551a7444
3 changed files with 474 additions and 521 deletions

View File

@ -479,6 +479,7 @@ YAPF_FLAGS = -i
YAPF_FILES = \
examples/xml_py/vl_file_copy \
examples/xml_py/vl_hier_graph \
src/bisonpre \
src/config_rev \
src/cppcheck_filtered \
src/flexfix \

View File

@ -326,7 +326,7 @@ V3ParseBison.h: V3ParseBison.c
# Have only one output file in this rule to prevent parallel make issues
V3ParseBison.c: verilog.y $(BISONPRE)
@echo "If you get errors from verilog.y below, try upgrading bison to version 1.875 or newer."
$(PERL) $(BISONPRE) --yacc ${YACC} -d -v -o V3ParseBison.c $<
$(PYTHON3) $(BISONPRE) --yacc ${YACC} -d -v -o V3ParseBison.c $<
V3Lexer_pregen.yy.cpp: verilog.l V3ParseBison.h $(HEADERS)
${LEX} --version

File diff suppressed because it is too large Load Diff