Internals: Convert astgen to python.

This commit is contained in:
Wilson Snyder 2021-01-16 13:24:14 -05:00
parent b82085fbc6
commit 1f105edf69
3 changed files with 666 additions and 737 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/astgen \
src/bisonpre \
src/config_rev \
src/cppcheck_filtered \

View File

@ -288,7 +288,7 @@ V3Number_test: V3Number_test.o
#### Modules
%__gen.cpp: %.cpp $(ASTGEN) V3Ast.h V3AstNodes.h
$(PERL) $(ASTGEN) -I$(srcdir) $*.cpp
$(PYTHON3) $(ASTGEN) -I$(srcdir) $*.cpp
%.o: %.cpp
$(OBJCACHE) ${CXX} ${CXXFLAGS} ${CPPFLAGSWALL} -c $< -o $@
@ -319,7 +319,7 @@ vlcovgen.d: $(VLCOVGEN) $(srcdir)/../include/verilated_cov_key.h
touch $@
V3Ast__gen_classes.h : $(ASTGEN) V3Ast.h V3AstNodes.h
$(PERL) $(ASTGEN) -I$(srcdir) --classes
$(PYTHON3) $(ASTGEN) -I$(srcdir) --classes
V3ParseBison.h: V3ParseBison.c

1398
src/astgen Normal file → Executable file

File diff suppressed because it is too large Load Diff