lexer adjustments

This commit is contained in:
Marvin Schlegel 2024-05-02 22:21:53 +02:00
parent 95063ac64f
commit db2b4a142c

View File

@ -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)
}