dshellInterpreter 1.2.0.11__tar.gz → 1.2.0.12__tar.gz

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.
Files changed (53) hide show
  1. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DshellInterpreteur/dshell_interpreter.py +4 -1
  2. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DshellParser/dshell_parser.py +1 -1
  3. {dshellinterpreter-1.2.0.11/dshellInterpreter.egg-info → dshellinterpreter-1.2.0.12}/PKG-INFO +1 -1
  4. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12/dshellInterpreter.egg-info}/PKG-INFO +1 -1
  5. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/setup.py +1 -1
  6. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DISCORD_COMMANDS/__init__.py +0 -0
  7. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DISCORD_COMMANDS/dshell_channel.py +0 -0
  8. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DISCORD_COMMANDS/dshell_embed.py +0 -0
  9. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DISCORD_COMMANDS/dshell_file.py +0 -0
  10. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DISCORD_COMMANDS/dshell_interaction.py +0 -0
  11. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DISCORD_COMMANDS/dshell_member.py +0 -0
  12. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DISCORD_COMMANDS/dshell_message.py +0 -0
  13. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DISCORD_COMMANDS/dshell_pastbin.py +0 -0
  14. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DISCORD_COMMANDS/dshell_role.py +0 -0
  15. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DISCORD_COMMANDS/dshell_ui.py +0 -0
  16. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DISCORD_COMMANDS/utils/__init__.py +0 -0
  17. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DISCORD_COMMANDS/utils/utils_embed.py +0 -0
  18. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DISCORD_COMMANDS/utils/utils_file.py +0 -0
  19. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DISCORD_COMMANDS/utils/utils_global.py +0 -0
  20. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DISCORD_COMMANDS/utils/utils_list.py +0 -0
  21. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DISCORD_COMMANDS/utils/utils_member.py +0 -0
  22. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DISCORD_COMMANDS/utils/utils_message.py +0 -0
  23. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DISCORD_COMMANDS/utils/utils_numbers.py +0 -0
  24. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DISCORD_COMMANDS/utils/utils_permissions.py +0 -0
  25. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DISCORD_COMMANDS/utils/utils_string.py +0 -0
  26. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DISCORD_COMMANDS/utils/utils_thread.py +0 -0
  27. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DISCORD_COMMANDS/utils/utils_type_validation.py +0 -0
  28. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DshellInterpreteur/__init__.py +0 -0
  29. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DshellInterpreteur/cached_messages.py +0 -0
  30. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DshellInterpreteur/dshell_arguments.py +0 -0
  31. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DshellInterpreteur/dshell_global_variables.py +0 -0
  32. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DshellInterpreteur/dshell_scope.py +0 -0
  33. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DshellInterpreteur/errors.py +0 -0
  34. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DshellInterpreteur/utils_interpreter.py +0 -0
  35. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DshellParser/__init__.py +0 -0
  36. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DshellParser/ast_nodes.py +0 -0
  37. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DshellParser/errors.py +0 -0
  38. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DshellPreProcess/__init__.py +0 -0
  39. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DshellPreProcess/dshell_preprocess.py +0 -0
  40. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DshellTokenizer/__init__.py +0 -0
  41. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DshellTokenizer/dshell_keywords.py +0 -0
  42. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DshellTokenizer/dshell_token_type.py +0 -0
  43. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/DshellTokenizer/dshell_tokenizer.py +0 -0
  44. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/__init__.py +0 -0
  45. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/full_import.py +0 -0
  46. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/Dshell/regex_test.py +0 -0
  47. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/LICENSE +0 -0
  48. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/README.md +0 -0
  49. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/dshellInterpreter.egg-info/SOURCES.txt +0 -0
  50. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/dshellInterpreter.egg-info/dependency_links.txt +0 -0
  51. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/dshellInterpreter.egg-info/requires.txt +0 -0
  52. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/dshellInterpreter.egg-info/top_level.txt +0 -0
  53. {dshellinterpreter-1.2.0.11 → dshellinterpreter-1.2.0.12}/setup.cfg +0 -0
@@ -104,7 +104,7 @@ class DshellInterpreteur:
104
104
  '__guild_forum_channels__': ListNode([IntNode(channel.id) for channel in message.channel.guild.forum_channels], bypass_limit_elt=True, editable=False),
105
105
  '__guild_channels_count__': IntNode(len(message.channel.guild.channels)),
106
106
 
107
- } if message is not None and not debug else {'__ret__': None}) # {} is used in debug mode, when ctx is None
107
+ } if message is not None and not debug else {'__ret__': None, '__break__': BoolNode(0)}) # {} is used in debug mode, when ctx is None
108
108
 
109
109
  if isinstance(vars_env, Scope):
110
110
  self.env = vars_env
@@ -240,6 +240,9 @@ class DshellInterpreteur:
240
240
  elif isinstance(node, LoopNode):
241
241
  await self._execute_loop_node(node)
242
242
 
243
+ elif isinstance(node, BreakNode):
244
+ await self._execute_break_node(node)
245
+
243
246
  elif isinstance(node, VarNode):
244
247
  await self._execute_var_node(node)
245
248
 
@@ -133,7 +133,7 @@ def parse(token_lines: list[list[Token]], start_node: ASTNode) -> tuple[list[AST
133
133
  blocks.pop()
134
134
  return blocks, pointer # return the parsed information to the last opened loop
135
135
 
136
- elif first_token_line == 'break':
136
+ elif first_token_line.value == 'break':
137
137
  last_loop_block = None
138
138
 
139
139
  for i in blocks:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dshellInterpreter
3
- Version: 1.2.0.11
3
+ Version: 1.2.0.12
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dshellInterpreter
3
- Version: 1.2.0.11
3
+ Version: 1.2.0.12
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
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setup(
7
7
  name="dshellInterpreter",
8
- version="1.2.0.11",
8
+ version="1.2.0.12",
9
9
  author="Chronos",
10
10
  author_email="vagabonwalybi@gmail.com",
11
11
  description="A Discord bot interpreter for creating custom commands and automations.",