diff --git a/src/Parser/Lexer.x b/src/Parser/Lexer.x index d7f551d..ef76773 100644 --- a/src/Parser/Lexer.x +++ b/src/Parser/Lexer.x @@ -118,6 +118,8 @@ tokens :- "<<=" { \_ -> SHIFTLEFTEQUAL } ">>" { \_ -> SHIFTRIGHT } ">>=" { \_ -> SHIFTRIGHTEQUAL } + ">>>" { \_ -> UNSIGNEDSHIFTRIGHT } + ">>>=" { \_ -> UNSIGNEDSHIFTRIGHTEQUAL } { @@ -173,7 +175,7 @@ data Token | VOLATILE | WHILE | IDENTIFIER String - | INTEGERLITERAL Integer + | INTEGERLITERAL Int | CHARLITERAL Char | BOOLLITERAL Bool | NULLLITERAL @@ -219,6 +221,8 @@ data Token | SHIFTLEFTEQUAL | SHIFTRIGHT | SHIFTRIGHTEQUAL + | UNSIGNEDSHIFTRIGHT + | UNSIGNEDSHIFTRIGHTEQUAL deriving(Eq,Show) } \ No newline at end of file