Website Summary Files Commits Branches @commit @diff @stats
path: root / homework / 81352 / ts2html-hw2 / ts2html.flex
diff options
context:
space:
mode:
Commitaeb0d4f887a0c18c36b59acc7b5df08e62020c50 (patch)
Author
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2020-10-11 21:32:48 +0300
Committer
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2020-10-11 21:33:38 +0300
Filesb6abdc6e1810326b587f2a160f39570f1f568f27 /homework/81352/ts2html-hw2/ts2html.flex
IPL-aeb0d4f887a0c18c36b59acc7b5df08e62020c50.tar
IPL-aeb0d4f887a0c18c36b59acc7b5df08e62020c50.tar.gz
IPL-aeb0d4f887a0c18c36b59acc7b5df08e62020c50.zip
Parent154b7cd30f21af1554ca26986ff1643e28857727 (diff)
Removed old homeworks
1 files changed, 0 insertions, 71 deletions
-rw-r--r--homework/81352/ts2html-hw2/ts2html.flex71
diff --git a/homework/81352/ts2html-hw2/ts2html.flex b/homework/81352/ts2html-hw2/ts2html.flex
deleted file mode 100644
index 4b2ef00..0000000
--- a/homework/81352/ts2html-hw2/ts2html.flex
+++ /dev/null
@@ -1,71 +0,0 @@
-%{
-#include "parser.tab.h"
-%}
-
-DIGIT [0-9]
-NUMBER [1-9]{DIGIT}*
-FNUMBER {DIGIT}+"."{DIGIT}*
-ID [a-zA-Z_$][a-zA-Z0-9_$]*
-STRQ '([^\']|(\\\'))*'
-STRDQ \"([^\"]|(\\\"))*\"
-SINGLE_LINE_COMMENT "//"[^\n]*
-MULTI_LINE_COMMENT "/*".*"*/"
-COMMENT {SINGLE_LINE_COMMENT}|{MULTI_LINE_COMMENT}
-DECORATOR @[a-zA-Z]+
-%%
-
-break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|new|null|return|super|switch|this|throw|true|try|typeof|var|void|while|with|as|implements|interface|let|package|private|protected|public|static|yield|any|boolean|constructor|declare|get|module|require|number|set|string|symbol|type|from|of {
- yylval = yytext;
- return KEYWORD;
-}
-
-{COMMENT} {
- yylval = yytext;
- return COMMENT;
-}
-
-{DECORATOR} {
- yylval = yytext;
- return DECORATOR;
-}
-
-"{" { return '{'; }
-
-"}" { return '}'; }
-
-{STRQ}|{STRDQ} {
- yylval = yytext;
- return STRING;
-}
-
-{NUMBER}|{FNUMBER} {
- yylval = yytext;
- return NUMBER;
-}
-
-{ID} {
- yylval = yytext;
- return IDENTIFIER;
-}
-
-":"|"?"|"."|"!"|"~"|"-"|"+"|"++"|"--"|"*"|"/"|"%"|"<<"|">>"|">>>"|"<"|"<="|">"|">="|"=="|"!="|"==="|"!=="|"&"|"^"|"|"|"&&"|"||"|"="|"+="|"-="|"*="|"/="|"%="|"<<="|">>="|">>>="|"&="|"^="|"|="|"=>" {
- yylval = yytext;
- return OPERATOR;
-}
-
-\n {
- yylval = yytext;
- return NEWLINE;
-}
-
-. {
- yylval = yytext;
- return OTHER;
-}
-
-%%
-
-int yywrap()
-{
- return 1;
-} \ No newline at end of file