projects
/
soc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
try again with adding XOR operator
[soc.git]
/
src
/
soc
/
decoder
/
pseudo
/
lexer.py
diff --git
a/src/soc/decoder/pseudo/lexer.py
b/src/soc/decoder/pseudo/lexer.py
index ee06c3f154578d84bd20a524f38c1defece8b274..3638a7fe4c285b02ed4bb775c087c927fbbed099 100644
(file)
--- a/
src/soc/decoder/pseudo/lexer.py
+++ b/
src/soc/decoder/pseudo/lexer.py
@@
-256,6
+256,7
@@
class PowerLexer:
'APPEND',
'BITOR',
'BITAND',
+ 'BITXOR',
'RETURN',
'WS',
'NEWLINE',
@@
-308,6
+309,7
@@
class PowerLexer:
t_APPEND = r'\|\|'
t_BITOR = r'\|'
t_BITAND = r'\&'
+ t_BITXOR = r'\&'
# Ply nicely documented how to do this.