Commits

Lucian Brănescu-Mihăilă  committed 1aff975

Handle larger range literals.

  • Participants
  • Parent commits 631cfeb

Comments (0)

Files changed (1)

         if 0x00 < literal < 0x1f:
             return literal + 0x20
         else:
-            # TODO next word literal
-            ValueError('Expected 0x00 < literal < 0x1f, got: {0}'.format(
-                literal))
+            return 0x1f, literal
 
-    return -1
+    raise SyntaxError("Can't make sense of: {0}".format(toks))
 
 
 def assemble(source):