text: # -*- coding: utf-8 -*-
  
  import unittest
  
  from pynes.compiler import lexical, syntax, semantic
  
  
  class TayTest(unittest.TestCase):
  
      def test_tay_sngl(self):
          tokens = list(lexical('TAY'))
          self.assertEquals(1, len(tokens))
          self.assertEquals('T_INSTRUCTION', tokens[0]['type'])
          ast = syntax(tokens)
          self.assertEquals(1, len(ast))
          self.assertEquals('S_IMPLIED', ast[0]['type'])
          code = semantic(ast)
          self.assertEquals(code, [0xa8])
  