Changed style to conform to PEP-8 conventions; Added source and destination attributes to parent Operand class

This commit is contained in:
stefandesouza
2023-10-29 13:52:49 +01:00
parent 46fc8c1f29
commit cce05e44cb
26 changed files with 876 additions and 916 deletions

View File

@@ -6,16 +6,16 @@ import re
class BaseParser(object):
# Identifiers for operand types
COMMENT_ID = "comment"
DIRECTIVE_ID = "directive"
comment_id = "comment"
directive_id = "directive"
IMMEDIATE_ID = "immediate"
LABEL_ID = "label"
label_id = "label"
IDENTIFIER_ID = "identifier"
MEMORY_ID = "memory"
REGISTER_ID = "register"
SEGMENT_EXT_ID = "segment_extension"
INSTRUCTION_ID = "instruction"
OPERANDS_ID = "operands"
segment_ext_id = "segment_extension"
instruction_id = "instruction"
operands_id = "operands"
_parser_constructed = False
def __init__(self):