token_utils.tokenizing
tokenizing.py
All the functions dealing with tokenizing/untokenizing.
Functions
|
Our tokenizer is based on Python's 3.11 tokenizer which drops entirely a last line if it consists only of space characters and/or tab characters. |
|
Tokenize a source (string) yielding tokens one at a time. |
|
Transforms a source (string) into a list of of list of Tokens, with each (inner) list containing all the tokens found on a given line of code. |
|
Gets a list of tokens from a source (str), removing any token that signal a change in indentation. |
|
Transforms a source (string) into a list of of list of Tokens, with each (inner) list containing all the tokens found on a given line of code except that any token related to change in indentation will have been removed. |
|
Prints tokens found in source, excluding spaces and comments. |
|
Removes the comments in a source. |
|
Transforms a source (string) into a list of Tokens. |
|
Return source code based on tokens. |
|
Given a line of lines of tokens, such as that obtained by |