File tree Expand file tree Collapse file tree 8 files changed +14
-14
lines changed
Tools/peg_generator/pegen Expand file tree Collapse file tree 8 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -301,15 +301,15 @@ LIBFFI_INCLUDEDIR= @LIBFFI_INCLUDEDIR@
301301
302302PEGEN_OBJS= \
303303 Parser/pegen.o \
304- Parser/parse .o \
305- Parser/parse_string .o \
304+ Parser/parser .o \
305+ Parser/string_parser .o \
306306 Parser/peg_api.o
307307
308308
309309PEGEN_HEADERS= \
310310 $(srcdir)/Include/internal/pegen_interface.h \
311311 $(srcdir)/Parser/pegen.h \
312- $(srcdir)/Parser/parse_string .h
312+ $(srcdir)/Parser/string_parser .h
313313
314314POBJS= \
315315 Parser/token.o \
@@ -823,8 +823,8 @@ regen-pegen:
823823 PYTHONPATH=$(srcdir)/Tools/peg_generator $(PYTHON_FOR_REGEN) -m pegen -q c \
824824 $(srcdir)/Grammar/python.gram \
825825 $(srcdir)/Grammar/Tokens \
826- -o $(srcdir)/Parser/parse .new.c
827- $(UPDATE_FILE) $(srcdir)/Parser/parse .c $(srcdir)/Parser/parse .new.c
826+ -o $(srcdir)/Parser/parser .new.c
827+ $(UPDATE_FILE) $(srcdir)/Parser/parser .c $(srcdir)/Parser/parser .new.c
828828
829829.PHONY=regen-ast
830830regen-ast:
Original file line number Diff line number Diff line change 280280 <ClInclude Include =" ..\Objects\stringlib\split.h" />
281281 <ClInclude Include =" ..\Objects\unicodetype_db.h" />
282282 <ClInclude Include =" ..\Parser\tokenizer.h" />
283- <ClInclude Include =" ..\Parser\parse_string .h" />
283+ <ClInclude Include =" ..\Parser\string_parser .h" />
284284 <ClInclude Include =" ..\Parser\pegen.h" />
285285 <ClInclude Include =" ..\PC\errmap.h" />
286286 <ClInclude Include =" ..\PC\pyconfig.h" />
418418 <ClCompile Include =" ..\Parser\tokenizer.c" />
419419 <ClCompile Include =" ..\Parser\token.c" />
420420 <ClCompile Include =" ..\Parser\pegen.c" />
421- <ClCompile Include =" ..\Parser\parse .c" />
422- <ClCompile Include =" ..\Parser\parse_string .c" />
421+ <ClCompile Include =" ..\Parser\parser .c" />
422+ <ClCompile Include =" ..\Parser\string_parser .c" />
423423 <ClCompile Include =" ..\Parser\peg_api.c" />
424424 <ClCompile Include =" ..\PC\invalid_parameter_handler.c" />
425425 <ClCompile Include =" ..\PC\winreg.c" />
Original file line number Diff line number Diff line change 156156 <ImportGroup Label =" ExtensionTargets" >
157157 </ImportGroup >
158158 <Target Name =" _RegenPegen" BeforeTargets =" Build" >
159- <!-- Regenerate Parser/parse .c -->
159+ <!-- Regenerate Parser/parser .c -->
160160 <SetEnv Name =" PYTHONPATH" Prefix =" true" Value =" $(PySourcePath)Tools\peg_generator\" />
161- <Exec Command =" " $(PythonExe)" -m pegen -q c " $(PySourcePath)Grammar\python.gram" " $(PySourcePath)Grammar\Tokens" -o " $(IntDir)parse .c" " />
162- <Copy SourceFiles =" $(IntDir)parse .c" DestinationFiles =" $(PySourcePath)Parser\parse .c" >
161+ <Exec Command =" " $(PythonExe)" -m pegen -q c " $(PySourcePath)Grammar\python.gram" " $(PySourcePath)Grammar\Tokens" -o " $(IntDir)parser .c" " />
162+ <Copy SourceFiles =" $(IntDir)parser .c" DestinationFiles =" $(PySourcePath)Parser\parser .c" >
163163 <Output TaskParameter =" CopiedFiles" ItemName =" _UpdatedParse" />
164164 </Copy >
165165 <Warning Text =" Pegen updated. You will need to rebuild pythoncore to see the changes." Condition =" '@(_UpdatedParse)' != ''" />
File renamed without changes.
Original file line number Diff line number Diff line change 33#include "tokenizer.h"
44
55#include "pegen.h"
6- #include "parse_string .h"
6+ #include "string_parser .h"
77
88PyObject *
99_PyPegen_new_type_comment (Parser * p , char * s )
Original file line number Diff line number Diff line change 22
33#include "tokenizer.h"
44#include "pegen.h"
5- #include "parse_string .h"
5+ #include "string_parser .h"
66
77//// STRING HANDLING FUNCTIONS ////
88
File renamed without changes.
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ def compile_c_extension(
6767 str (MOD_DIR .parent .parent .parent / "Python" / "asdl.c" ),
6868 str (MOD_DIR .parent .parent .parent / "Parser" / "tokenizer.c" ),
6969 str (MOD_DIR .parent .parent .parent / "Parser" / "pegen.c" ),
70- str (MOD_DIR .parent .parent .parent / "Parser" / "parse_string .c" ),
70+ str (MOD_DIR .parent .parent .parent / "Parser" / "string_parser .c" ),
7171 str (MOD_DIR .parent / "peg_extension" / "peg_extension.c" ),
7272 generated_source_path ,
7373 ],
You can’t perform that action at this time.
0 commit comments