dshellInterpreter 0.1.21__py3-none-any.whl → 0.1.22__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of dshellInterpreter might be problematic. Click here for more details.
- Dshell/_DshellTokenizer/dshell_tokenizer.py +4 -4
- {dshellinterpreter-0.1.21.dist-info → dshellinterpreter-0.1.22.dist-info}/METADATA +1 -1
- {dshellinterpreter-0.1.21.dist-info → dshellinterpreter-0.1.22.dist-info}/RECORD +6 -6
- {dshellinterpreter-0.1.21.dist-info → dshellinterpreter-0.1.22.dist-info}/WHEEL +0 -0
- {dshellinterpreter-0.1.21.dist-info → dshellinterpreter-0.1.22.dist-info}/licenses/LICENSE +0 -0
- {dshellinterpreter-0.1.21.dist-info → dshellinterpreter-0.1.22.dist-info}/top_level.txt +0 -0
|
@@ -70,10 +70,6 @@ class DshellTokenizer:
|
|
|
70
70
|
token = Token(token_type, match.group(1), (line_number, match.start())) # on enregistre son token
|
|
71
71
|
tokens_par_ligne.append(token)
|
|
72
72
|
|
|
73
|
-
len_match = len(match.group(0))
|
|
74
|
-
ligne = ligne[:match.start()] + (MASK_CHARACTER * len_match) + ligne[
|
|
75
|
-
match.end():] # remplace la match qui vient d'avoir lieu pour ne pas le rematch une seconde fois
|
|
76
|
-
|
|
77
73
|
if token_type in (
|
|
78
74
|
DTT.LIST,
|
|
79
75
|
DTT.CALL_ARGS): # si c'est un regrouppement de donnée, on tokenize ce qu'il contient
|
|
@@ -81,6 +77,10 @@ class DshellTokenizer:
|
|
|
81
77
|
token.value = result[0] if len(
|
|
82
78
|
result) > 0 else result # gère si la structure de donnée est vide ou non
|
|
83
79
|
|
|
80
|
+
len_match = len(match.group(0))
|
|
81
|
+
ligne = ligne[:match.start()] + (MASK_CHARACTER * len_match) + ligne[
|
|
82
|
+
match.end():] # remplace la match qui vient d'avoir lieu pour ne pas le rematch une seconde fois
|
|
83
|
+
|
|
84
84
|
tokens_par_ligne.sort(key=lambda
|
|
85
85
|
token: token.position[1]) # trie la position par rapport aux positions de match des tokens pour les avoir dans l'ordre du code
|
|
86
86
|
if tokens_par_ligne:
|
|
@@ -11,9 +11,9 @@ Dshell/_DshellParser/dshell_parser.py,sha256=jCnwxY_J-_u1W_tEotQznp4_Y0aeAH4pTcP
|
|
|
11
11
|
Dshell/_DshellTokenizer/__init__.py,sha256=LIQSRhDx2B9pmPx5ADMwwD0Xr9ybneVLhHH8qrJWw_s,172
|
|
12
12
|
Dshell/_DshellTokenizer/dshell_keywords.py,sha256=10VctszIRg8AX5Nsr7kwRIjdwzUgTfrrJYbD7QfYR5s,4253
|
|
13
13
|
Dshell/_DshellTokenizer/dshell_token_type.py,sha256=Q8Jpil9S3-Tin1sXEHW7cnNdDdUh7Fiv8_lki0OWC0E,1443
|
|
14
|
-
Dshell/_DshellTokenizer/dshell_tokenizer.py,sha256=
|
|
15
|
-
dshellinterpreter-0.1.
|
|
16
|
-
dshellinterpreter-0.1.
|
|
17
|
-
dshellinterpreter-0.1.
|
|
18
|
-
dshellinterpreter-0.1.
|
|
19
|
-
dshellinterpreter-0.1.
|
|
14
|
+
Dshell/_DshellTokenizer/dshell_tokenizer.py,sha256=_igd0sOJJKINWaD3AMeUiZe7pO9mqfkAuP-rVp_PIx0,5831
|
|
15
|
+
dshellinterpreter-0.1.22.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
|
|
16
|
+
dshellinterpreter-0.1.22.dist-info/METADATA,sha256=8H4QAGh9sz-fa5zwiXAcfjdO-Mhykz5m2GGboJWoNDY,1096
|
|
17
|
+
dshellinterpreter-0.1.22.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
18
|
+
dshellinterpreter-0.1.22.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
|
|
19
|
+
dshellinterpreter-0.1.22.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|