mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-104169: Refactor tokenizer into lexer and wrappers (#110684)
* The lexer, which include the actual lexeme producing logic, goes into the `lexer` directory. * The wrappers, one wrapper per input mode (file, string, utf-8, and readline), go into the `tokenizer` directory and include logic for creating a lexer instance and managing the buffer for different modes. --------- Co-authored-by: Pablo Galindo <pablogsal@gmail.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
This commit is contained in:
parent
eb50cd37ea
commit
01481f2dc1
29 changed files with 3185 additions and 2988 deletions
|
|
@ -362,7 +362,11 @@
|
|||
<ClInclude Include="..\Objects\stringlib\replace.h" />
|
||||
<ClInclude Include="..\Objects\stringlib\split.h" />
|
||||
<ClInclude Include="..\Objects\unicodetype_db.h" />
|
||||
<ClInclude Include="..\Parser\tokenizer.h" />
|
||||
<ClInclude Include="..\Parser\lexer\state.h" />
|
||||
<ClInclude Include="..\Parser\lexer\lexer.h" />
|
||||
<ClInclude Include="..\Parser\lexer\buffer.h" />
|
||||
<ClInclude Include="..\Parser\tokenizer\helpers.h" />
|
||||
<ClInclude Include="..\Parser\tokenizer\tokenizer.h" />
|
||||
<ClInclude Include="..\Parser\string_parser.h" />
|
||||
<ClInclude Include="..\Parser\pegen.h" />
|
||||
<ClInclude Include="..\PC\errmap.h" />
|
||||
|
|
@ -507,7 +511,14 @@
|
|||
<ClCompile Include="..\Objects\unionobject.c" />
|
||||
<ClCompile Include="..\Objects\weakrefobject.c" />
|
||||
<ClCompile Include="..\Parser\myreadline.c" />
|
||||
<ClCompile Include="..\Parser\tokenizer.c" />
|
||||
<ClCompile Include="..\Parser\lexer\state.c" />
|
||||
<ClCompile Include="..\Parser\lexer\lexer.c" />
|
||||
<ClCompile Include="..\Parser\lexer\buffer.c" />
|
||||
<ClCompile Include="..\Parser\tokenizer\string_tokenizer.c" />
|
||||
<ClCompile Include="..\Parser\tokenizer\file_tokenizer.c" />
|
||||
<ClCompile Include="..\Parser\tokenizer\utf8_tokenizer.c" />
|
||||
<ClCompile Include="..\Parser\tokenizer\readline_tokenizer.c" />
|
||||
<ClCompile Include="..\Parser\tokenizer\helpers.c" />
|
||||
<ClCompile Include="..\Parser\token.c" />
|
||||
<ClCompile Include="..\Parser\pegen.c" />
|
||||
<ClCompile Include="..\Parser\pegen_errors.c" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue