Skip to content

Commit 280bff8

Browse files
committed
Bugfix: change LSHIFT and RSHIFT toke names
Token names where switched. Despite that this does not affect the assembler, because it uses token literals ('<<' and '>>').
1 parent ad67423 commit 280bff8

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

asmlex.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,11 +303,11 @@ def t_RP(self, t):
303303
return t
304304

305305
def t_LSHIFT(self, t):
306-
r'>>'
306+
r'<<'
307307
return t
308308

309309
def t_RSHIFT(self, t):
310-
r'<<'
310+
r'>>'
311311
return t
312312

313313
def t_BAND(self, t):

tests/functional/shift.asm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
LD a, 255 >> 1
3+
LD a, 1 << 1
4+

tests/functional/shift.bin

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
>>

0 commit comments

Comments
 (0)