progs/lexer/lex.sc
changeset 846 3a535de22816
parent 844 bbbc2a7940cb
child 852 8706b846a3e0
--- a/progs/lexer/lex.sc	Tue Oct 19 22:49:14 2021 +0100
+++ b/progs/lexer/lex.sc	Tue Oct 19 22:51:51 2021 +0100
@@ -157,7 +157,7 @@
 val KEYWORD : Rexp = "skip" | "while" | "do" | "if" | "then" | "else" | "read" | "write" 
 val SEMI: Rexp = ";"
 val OP: Rexp = ":=" | "=" | "-" | "+" | "*" | "!=" | "<" | ">"
-val WHITESPACE = PLUS(" " | "\n" | "\t")
+val WHITESPACE = PLUS(" " | "\n" | "\t" | "\r")
 val RPAREN: Rexp = "}"
 val LPAREN: Rexp = "{"
 val STRING: Rexp = "\"" ~ SYM.% ~ "\""