Skip to content

Commit

Permalink
final release preps
Browse files Browse the repository at this point in the history
  • Loading branch information
uuk0 committed May 11, 2023
1 parent f0f3d48 commit 62aae06
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ASSEMBLY.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ for cross-version support.

## Meta Instructions (dynamically decide what to use)

* LABEL \<name>: an bytecode label, can be used for jumps (use bytecodemanipulation.assembler.target.label(\<name>) when trying to jump to a instruction not in ASM, but in pure python)
* LABEL \<name>: a bytecode label, can be used for jumps (use bytecodemanipulation.assembler.target.label(\<name>) when trying to jump to a instruction not in ASM, but in pure python)

* LOAD \<expression> \['->' \<target>]: Pushes the global or local variable to the stack
* STORE \<expression> \['(' \<expression> ')']: stores TOS or value of 'expression' in the local or global variable
Expand Down
2 changes: 1 addition & 1 deletion bytecodemanipulation/assembler/Parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def try_parse_custom_assembly(
).assemblies:
if macro.allow_assembly_instr:
self.rollback()
print(name)
# print(name)
return AbstractCallAssembly.IMPLEMENTATION.consume_macro_call(
self, scope
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ class AbstractAssemblyInstruction(AbstractExpression, IAssemblyStructureVisitabl
NAME: str | None = None
IMPLEMENTATION: typing.Type["AbstractAssemblyInstruction"] | None = None

@classmethod
def register(cls):
from bytecodemanipulation.assembler.Parser import Parser

Parser.register(cls)
return cls

@classmethod
def __init_subclass__(cls, **kwargs):
# copy the class definition into all superclasses inheriting from AbstractAssemblyInstruction
Expand Down

0 comments on commit 62aae06

Please sign in to comment.