summaryrefslogtreecommitdiff
path: root/compiler/cmm/CmmLex.x
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/cmm/CmmLex.x')
-rw-r--r--compiler/cmm/CmmLex.x16
1 files changed, 10 insertions, 6 deletions
diff --git a/compiler/cmm/CmmLex.x b/compiler/cmm/CmmLex.x
index ddd681d25e..718eb27c82 100644
--- a/compiler/cmm/CmmLex.x
+++ b/compiler/cmm/CmmLex.x
@@ -23,9 +23,9 @@ module CmmLex (
CmmToken(..), cmmlex,
) where
-import OldCmm
-import Lexer
+import CmmExpr
+import Lexer
import SrcLoc
import UniqFM
import StringBuffer
@@ -147,6 +147,7 @@ data CmmToken
| CmmT_align
| CmmT_goto
| CmmT_if
+ | CmmT_call
| CmmT_jump
| CmmT_foreign
| CmmT_never
@@ -157,6 +158,7 @@ data CmmToken
| CmmT_switch
| CmmT_case
| CmmT_default
+ | CmmT_push
| CmmT_bits8
| CmmT_bits16
| CmmT_bits32
@@ -224,8 +226,9 @@ reservedWordsFM = listToUFM $
( "align", CmmT_align ),
( "goto", CmmT_goto ),
( "if", CmmT_if ),
- ( "jump", CmmT_jump ),
- ( "foreign", CmmT_foreign ),
+ ( "call", CmmT_call ),
+ ( "jump", CmmT_jump ),
+ ( "foreign", CmmT_foreign ),
( "never", CmmT_never ),
( "prim", CmmT_prim ),
( "return", CmmT_return ),
@@ -233,8 +236,9 @@ reservedWordsFM = listToUFM $
( "import", CmmT_import ),
( "switch", CmmT_switch ),
( "case", CmmT_case ),
- ( "default", CmmT_default ),
- ( "bits8", CmmT_bits8 ),
+ ( "default", CmmT_default ),
+ ( "push", CmmT_push ),
+ ( "bits8", CmmT_bits8 ),
( "bits16", CmmT_bits16 ),
( "bits32", CmmT_bits32 ),
( "bits64", CmmT_bits64 ),