From d86f72eec3b9f32adce9f2fb0a76a7c52857f739 Mon Sep 17 00:00:00 2001 From: Stefano Sanfilippo Date: Sun, 23 Nov 2014 20:44:16 +0100 Subject: [PATCH] Text alias for number 2. --- Monicelli.ll | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Monicelli.ll b/Monicelli.ll index 5662940..41b96d9 100644 --- a/Monicelli.ll +++ b/Monicelli.ll @@ -149,6 +149,11 @@ CHAR [a-zA-Z_] [ \t\f\v] {} +"due" { + yylval.intval = 2; + return NUMBER; +} + {CHAR}({DIGIT}|{CHAR})* { yylval.strval = strdup(yytext); return ID;