From 0fbf22d5fe5b7e07377ee9f133ab812e1a1fbdac Mon Sep 17 00:00:00 2001 From: Pixel Date: Sun, 28 Oct 2012 23:44:09 -0700 Subject: Adding the new tags in the compilation code. --- compil.lex | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/compil.lex b/compil.lex index 1bac4f2..b8cf4f0 100644 --- a/compil.lex +++ b/compil.lex @@ -3,6 +3,8 @@ %s I /* In port block */ %s P + /* In delay block */ +%s D /* In unknown 1 block */ %s U1 /* In unknown 2 block, arg1 */ @@ -97,6 +99,31 @@ BEGIN(P); } +"" { + putcode(18); + } + +""u=\""[[:digit:]]+"\"/>" { + int d = atoi(yytext + 3); + putcode2(17, d, arg1); + BEGIN(I); + } + +"" { + int t = atoi(yytext + 11); + putcode2(17, t, 0); + } + +"" { + int t = atoi(yytext + 11); + putcode2(17, t, 1); + } +

"a2=\""[[:digit:]]+"\"/>" { int d = atoi(yytext + 4); putcode2(19, arg1, d); -- cgit v1.2.3