summaryrefslogtreecommitdiff
path: root/utils/genprimopcode/Lexer.x
diff options
context:
space:
mode:
Diffstat (limited to 'utils/genprimopcode/Lexer.x')
-rw-r--r--utils/genprimopcode/Lexer.x8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/genprimopcode/Lexer.x b/utils/genprimopcode/Lexer.x
index ff18e17373..d29d8a17f0 100644
--- a/utils/genprimopcode/Lexer.x
+++ b/utils/genprimopcode/Lexer.x
@@ -40,6 +40,10 @@ words :-
<0> ")" { mkT TCloseParen }
<0> "(#" { mkT TOpenParenHash }
<0> "#)" { mkT THashCloseParen }
+ <0> "[" { mkT TOpenBracket }
+ <0> "]" { mkT TCloseBracket }
+ <0> "<" { mkT TOpenAngle }
+ <0> ">" { mkT TCloseAngle }
<0> "section" { mkT TSection }
<0> "primop" { mkT TPrimop }
<0> "pseudoop" { mkT TPseudoop }
@@ -58,7 +62,11 @@ words :-
<0> "infixl" { mkT TInfixL }
<0> "infixr" { mkT TInfixR }
<0> "Nothing" { mkT TNothing }
+ <0> "vector" { mkT TVector }
<0> "thats_all_folks" { mkT TThatsAllFolks }
+ <0> "SCALAR" { mkT TSCALAR }
+ <0> "VECTOR" { mkT TVECTOR }
+ <0> "VECTUPLE" { mkT TVECTUPLE }
<0> [a-z][a-zA-Z0-9\#_]* { mkTv TLowerName }
<0> [A-Z][a-zA-Z0-9\#_]* { mkTv TUpperName }
<0> [0-9][0-9]* { mkTv (TInteger . read) }