dshellInterpreter 0.2.13.21__py3-none-any.whl → 0.2.14.1__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.

@@ -149,7 +149,7 @@ class DshellInterpreteur:
149
149
  self.env[node.name.value] = build_ui(first_node, self)
150
150
 
151
151
  elif isinstance(first_node, LengthNode):
152
- self.env[node.name.value] = length(first_node.body)
152
+ self.env[node.name.value] = length(first_node)
153
153
 
154
154
  else:
155
155
  self.env[node.name.value] = eval_expression(node.body, self)
@@ -166,11 +166,6 @@ def parse(token_lines: list[list[Token]], start_node: ASTNode) -> tuple[list[AST
166
166
  last_block.body.append(sleep_node)
167
167
 
168
168
  elif first_token_line.value == 'param':
169
- if len(tokens_by_line) <= 1:
170
- raise SyntaxError(f'[PARAM] Take one arguments on line {first_token_line.position} !')
171
- if tokens_by_line[1].type != DTT.IDENT:
172
- raise TypeError(f'[PARAM] the variable given must be a ident, '
173
- f'not {tokens_by_line[1].type} in line {tokens_by_line[1].position}')
174
169
 
175
170
  param_node = ParamNode(body=[])
176
171
  last_block.body.append(param_node)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dshellInterpreter
3
- Version: 0.2.13.21
3
+ Version: 0.2.14.1
4
4
  Summary: A Discord bot interpreter for creating custom commands and automations.
5
5
  Home-page: https://github.com/BOXERRMD/Dshell_Interpreter
6
6
  Author: Chronos
@@ -11,16 +11,16 @@ Dshell/DISCORD_COMMANDS/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
11
11
  Dshell/DISCORD_COMMANDS/utils/utils_message.py,sha256=cQvJ15f49ddOjybARwkJKNFe3ITYQciF-pZHERFPkr0,2964
12
12
  Dshell/DISCORD_COMMANDS/utils/utils_thread.py,sha256=tVl4msEwrWHY-0AytI6eY3JSs-eIFUigDSJfK9mT1ww,1457
13
13
  Dshell/_DshellInterpreteur/__init__.py,sha256=xy5-J-R3YmY99JF3NBHTRRLsComFxpjnCA5xacISctU,35
14
- Dshell/_DshellInterpreteur/dshell_interpreter.py,sha256=qHJ9WigNurvFvtEpVppNcHTV8hIiAA8AJLT_j0h4q-s,28862
14
+ Dshell/_DshellInterpreteur/dshell_interpreter.py,sha256=RHDCLtZ66cqlvy6VKMKHWV3eL26V-CKcQEEN-2TUzhc,28857
15
15
  Dshell/_DshellParser/__init__.py,sha256=ONDfhZMvClqP_6tE8SLjp-cf3pXL-auQYnfYRrHZxC4,56
16
16
  Dshell/_DshellParser/ast_nodes.py,sha256=fU6BVe6w78ZhYib7SGR7iAfTqWqS2kvwZ0d4wMxxOHk,18366
17
- Dshell/_DshellParser/dshell_parser.py,sha256=mRkTSaNRl740SRc0IroymA1D7DNNkZcSbTVBJ_bthiE,22290
17
+ Dshell/_DshellParser/dshell_parser.py,sha256=ZSSRheiNNR1zumxBK_tqlnUPjJ7ZIE6S-K5aJPp4TjM,21887
18
18
  Dshell/_DshellTokenizer/__init__.py,sha256=LIQSRhDx2B9pmPx5ADMwwD0Xr9ybneVLhHH8qrJWw_s,172
19
19
  Dshell/_DshellTokenizer/dshell_keywords.py,sha256=euTckA4AsWBfBGMnFFi1YVz8dvXY1HNsQjNWtvARMR8,5878
20
20
  Dshell/_DshellTokenizer/dshell_token_type.py,sha256=gYIb2XN2YcgeRgmar_rBDS5CGmwfmxihu8mOW_d6lbE,1533
21
21
  Dshell/_DshellTokenizer/dshell_tokenizer.py,sha256=RrJA2XpcFH2vS6SnRIn5Own_uL5orIDvpq74t8xD3og,7350
22
- dshellinterpreter-0.2.13.21.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
23
- dshellinterpreter-0.2.13.21.dist-info/METADATA,sha256=iZI2IEF7NJvhFlITy0S1cU7awc6RY0WWuXtAj1xSQhA,1152
24
- dshellinterpreter-0.2.13.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
25
- dshellinterpreter-0.2.13.21.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
26
- dshellinterpreter-0.2.13.21.dist-info/RECORD,,
22
+ dshellinterpreter-0.2.14.1.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
23
+ dshellinterpreter-0.2.14.1.dist-info/METADATA,sha256=R-ZsMvWTCwL1mjgcm6jbohdIYEooLu8WxXcQPl-zK9o,1151
24
+ dshellinterpreter-0.2.14.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
25
+ dshellinterpreter-0.2.14.1.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
26
+ dshellinterpreter-0.2.14.1.dist-info/RECORD,,