Website Summary Files Commits Branches @commit @diff @stats
path: root / homework / 81568 / c2html / lexconst.h
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/81568/c2html/lexconst.h
IPL-aeb0d4f887a0c18c36b59acc7b5df08e62020c50.tar
IPL-aeb0d4f887a0c18c36b59acc7b5df08e62020c50.tar.gz
IPL-aeb0d4f887a0c18c36b59acc7b5df08e62020c50.zip
Parent154b7cd30f21af1554ca26986ff1643e28857727 (diff)
Removed old homeworks
1 files changed, 0 insertions, 42 deletions
-rw-r--r--homework/81568/c2html/lexconst.h42
diff --git a/homework/81568/c2html/lexconst.h b/homework/81568/c2html/lexconst.h
deleted file mode 100644
index cfb9e6d..0000000
--- a/homework/81568/c2html/lexconst.h
+++ /dev/null
@@ -1,42 +0,0 @@
-#ifndef LEXCER_CONST_H
-#define LEXCER_CONST_H
-
-namespace LexCer {
-
-static const std::unordered_set<std::string> keywords =
- {"auto", "register", "static", "extern", "typedef", "struct", "union", "enum",
- "if", "else", "for", "while", "switch", "case", "default", "const", "break",
- "continue", "goto", "sizeof", "alignof", "volatile", "return"};
-
-static const std::unordered_set<std::string> preprocessor =
- {"include", "define", "undef", "if", "ifdef", "ifndef", "else", "elif", "endif",
- "line", "error", "pragma"};
-
-static const std::unordered_map<TokenClass, std::string> tokenToClass
- {
- {
- {TokenClass::Operator, "operator"},
- {TokenClass::Keyword, "keyword"},
- {TokenClass::Typename, "typename"},
- {TokenClass::PreprocessorDirective, "preproc"},
- {TokenClass::Identifier, "identifier"},
- {TokenClass::String, "string"},
- {TokenClass::Comment, "comment"},
- {TokenClass::Number, "number"},
- {TokenClass::Invalid, "invalid"},
- {TokenClass::LeftParen, "identifier"},
- {TokenClass::LeftCurly, "identifier"},
- {TokenClass::RightParen, "identifier"},
- {TokenClass::RightCurly, "identifier"},
- {TokenClass::RightParen, "identifier"}
- }
- };
-
-static const std::string spanBegin = "<span class=\"";
-static const std::string spanEnd = "</span>";
-
-static constexpr int MAX_EXP_LEN = 4;
-
-} /* Namespace LexCer */
-
-#endif