

def test_lda_imm_with_decimal(self):
    tokens = list(lexical('LDA #10'))
    self.assertEquals(2, len(tokens))
    self.assertEquals('T_INSTRUCTION', tokens[0]['type'])
    self.assertEquals('T_DECIMAL_NUMBER', tokens[1]['type'])
    ast = syntax(tokens)
    self.assertEquals(1, len(ast))
    self.assertEquals('S_IMMEDIATE', tokens[0]['type'])
    code = semantic(ast)
    self.assertEquals(code, [169, 10])

dataset/ETHPy150Open gutomaia/pyNES/pynes/tests/lda_test.py LdaTest.test_lda_imm_with_decimal/VarMisuse@87/129 `ast`->`tokens`