File tree 8 files changed +14
-14
lines changed
Tools/peg_generator/pegen
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@
301
301
302
302
PEGEN_OBJS= \
303
303
Parser/pegen.o \
304
- Parser/parse .o \
305
- Parser/parse_string .o \
304
+ Parser/parser .o \
305
+ Parser/string_parser .o \
306
306
Parser/peg_api.o
307
307
308
308
309
309
PEGEN_HEADERS= \
310
310
$(srcdir)/Include/internal/pegen_interface.h \
311
311
$(srcdir)/Parser/pegen.h \
312
- $(srcdir)/Parser/parse_string .h
312
+ $(srcdir)/Parser/string_parser .h
313
313
314
314
POBJS= \
315
315
Parser/token.o \
@@ -823,8 +823,8 @@ regen-pegen:
823
823
PYTHONPATH=$(srcdir)/Tools/peg_generator $(PYTHON_FOR_REGEN) -m pegen -q c \
824
824
$(srcdir)/Grammar/python.gram \
825
825
$(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
828
828
829
829
.PHONY=regen-ast
830
830
regen-ast:
Original file line number Diff line number Diff line change 280
280
<ClInclude Include =" ..\Objects\stringlib\split.h" />
281
281
<ClInclude Include =" ..\Objects\unicodetype_db.h" />
282
282
<ClInclude Include =" ..\Parser\tokenizer.h" />
283
- <ClInclude Include =" ..\Parser\parse_string .h" />
283
+ <ClInclude Include =" ..\Parser\string_parser .h" />
284
284
<ClInclude Include =" ..\Parser\pegen.h" />
285
285
<ClInclude Include =" ..\PC\errmap.h" />
286
286
<ClInclude Include =" ..\PC\pyconfig.h" />
418
418
<ClCompile Include =" ..\Parser\tokenizer.c" />
419
419
<ClCompile Include =" ..\Parser\token.c" />
420
420
<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" />
423
423
<ClCompile Include =" ..\Parser\peg_api.c" />
424
424
<ClCompile Include =" ..\PC\invalid_parameter_handler.c" />
425
425
<ClCompile Include =" ..\PC\winreg.c" />
Original file line number Diff line number Diff line change 156
156
<ImportGroup Label =" ExtensionTargets" >
157
157
</ImportGroup >
158
158
<Target Name =" _RegenPegen" BeforeTargets =" Build" >
159
- <!-- Regenerate Parser/parse .c -->
159
+ <!-- Regenerate Parser/parser .c -->
160
160
<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" >
163
163
<Output TaskParameter =" CopiedFiles" ItemName =" _UpdatedParse" />
164
164
</Copy >
165
165
<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 3
3
#include "tokenizer.h"
4
4
5
5
#include "pegen.h"
6
- #include "parse_string .h"
6
+ #include "string_parser .h"
7
7
8
8
PyObject *
9
9
_PyPegen_new_type_comment (Parser * p , char * s )
Original file line number Diff line number Diff line change 2
2
3
3
#include "tokenizer.h"
4
4
#include "pegen.h"
5
- #include "parse_string .h"
5
+ #include "string_parser .h"
6
6
7
7
//// STRING HANDLING FUNCTIONS ////
8
8
File renamed without changes.
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ def compile_c_extension(
67
67
str (MOD_DIR .parent .parent .parent / "Python" / "asdl.c" ),
68
68
str (MOD_DIR .parent .parent .parent / "Parser" / "tokenizer.c" ),
69
69
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" ),
71
71
str (MOD_DIR .parent / "peg_extension" / "peg_extension.c" ),
72
72
generated_source_path ,
73
73
],
You can’t perform that action at this time.
0 commit comments