diff options
author | Pixel <pixel@nobis-crew.org> | 2012-10-28 23:44:09 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2012-10-28 23:44:09 -0700 |
commit | 0fbf22d5fe5b7e07377ee9f133ab812e1a1fbdac (patch) | |
tree | da8def60e254e164d6db08c76becd8d3475d8252 | |
parent | 2365582733668c3018ee2b04a7cd27e57e3cc550 (diff) |
Adding the new tags in the compilation code.
-rw-r--r-- | compil.lex | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -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); } +<I>"<ssync/>" { + putcode(18); + } + +<I>"<delay t=\""[[:digit:]]+"\" " { + arg1 = atoi(yytext + 10); + BEGIN(D); + } + +<D>"u=\""[[:digit:]]+"\"/>" { + int d = atoi(yytext + 3); + putcode2(17, d, arg1); + BEGIN(I); + } + +<I>"<delay0 t=\""[[:digit:]]+"\"/>" { + int t = atoi(yytext + 11); + putcode2(17, t, 0); + } + +<I>"<delay1 t=\""[[:digit:]]+"\"/>" { + int t = atoi(yytext + 11); + putcode2(17, t, 1); + } + <P>"a2=\""[[:digit:]]+"\"/>" { int d = atoi(yytext + 4); putcode2(19, arg1, d); |