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

@@ -29,12 +29,14 @@ class DshellInterpreteur:
29
29
  if debug:
30
30
  print_ast(self.ast)
31
31
 
32
- async def execute(self):
32
+ async def execute(self, ast: Optional[list[All_nodes]] = None):
33
33
  """
34
34
  Execute l'arbre syntaxique.
35
35
  """
36
+ if ast is None:
37
+ ast = self.ast
36
38
 
37
- for node in self.ast:
39
+ for node in ast:
38
40
 
39
41
  if isinstance(node, StartNode):
40
42
  await self.execute(node.body)
@@ -271,7 +271,7 @@ def parse_postfix_expression(postfix_tokens: list[Token]) -> list[IdentOperation
271
271
  return stack
272
272
 
273
273
 
274
- def print_ast(ast: ASTNode, decalage: int = 0):
274
+ def print_ast(ast: list[ASTNode], decalage: int = 0):
275
275
  for i in ast:
276
276
 
277
277
  if isinstance(i, StartNode):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dshellInterpreter
3
- Version: 0.1.1
3
+ Version: 0.1.3
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
@@ -3,16 +3,16 @@ Dshell/DISCORD_COMMANDS/__init__.py,sha256=s58iMazDXNPDLZ3Hvymh__C5w7lcgEvaYfX0-
3
3
  Dshell/DISCORD_COMMANDS/dshell_channel.py,sha256=IubzNzBtGEcbgkL_NJOWRY1oqE3Yb-ySDMUmoHKjGzM,2135
4
4
  Dshell/DISCORD_COMMANDS/dshell_message.py,sha256=jgSGBeDDHVy8u9fX2WN6wzh7I9WqVkeySlpmbJsBZjs,1919
5
5
  Dshell/_DshellInterpreteur/__init__.py,sha256=xy5-J-R3YmY99JF3NBHTRRLsComFxpjnCA5xacISctU,35
6
- Dshell/_DshellInterpreteur/dshell_interpreter.py,sha256=0pFZAk5kA3vzExfhyuQ92amr1OUDqaLzuAxpdwDVezE,10731
6
+ Dshell/_DshellInterpreteur/dshell_interpreter.py,sha256=xMGOPQFm4bEz2mNx-ZEZcQpjf_qgKw-yGv-yHVWZy9Q,10818
7
7
  Dshell/_DshellParser/__init__.py,sha256=ONDfhZMvClqP_6tE8SLjp-cf3pXL-auQYnfYRrHZxC4,56
8
8
  Dshell/_DshellParser/ast_nodes.py,sha256=ArTyuk7AykJ3xKiW656BOdZg92YEwbfAlzZF1YQeZoA,5483
9
- Dshell/_DshellParser/dshell_parser.py,sha256=PscOxBG2PXuoTJoKJhw1QRFSMyEMm4-aFxbEkoeXCwc,13241
9
+ Dshell/_DshellParser/dshell_parser.py,sha256=gFSngEyNcuYlpWPAPNyuwWetwIpQKFSQWnS_r1B-dRs,13247
10
10
  Dshell/_DshellTokenizer/__init__.py,sha256=LIQSRhDx2B9pmPx5ADMwwD0Xr9ybneVLhHH8qrJWw_s,172
11
11
  Dshell/_DshellTokenizer/dshell_keywords.py,sha256=NFa4VdfX26X5lU1Ps05hZkZg5IyBDpG9WgT9L1oTckM,3617
12
12
  Dshell/_DshellTokenizer/dshell_token_type.py,sha256=Gp-Vg2P96oTaKpOEKGHAvER7l98mbcuwmapLVJgmoCI,937
13
13
  Dshell/_DshellTokenizer/dshell_tokenizer.py,sha256=9ycZhz2X2uvZynE0illgi5AhtNyR_c5o1KX-pwCP1xM,5692
14
- dshellinterpreter-0.1.1.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
15
- dshellinterpreter-0.1.1.dist-info/METADATA,sha256=n60MdkJoCrlKgv_VD3w920Cejoi0iM7F5KwJY6LC2YM,1093
16
- dshellinterpreter-0.1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
- dshellinterpreter-0.1.1.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
18
- dshellinterpreter-0.1.1.dist-info/RECORD,,
14
+ dshellinterpreter-0.1.3.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
15
+ dshellinterpreter-0.1.3.dist-info/METADATA,sha256=2JV6Io5ErRYXuFUAGbRJs_VwyAF1XPwvbR3QIk1I7o0,1093
16
+ dshellinterpreter-0.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
+ dshellinterpreter-0.1.3.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
18
+ dshellinterpreter-0.1.3.dist-info/RECORD,,