Website Summary Files Commits Branches @commit @diff @stats
path: root / homework / 81270 / js2html / Highlighter.h
diff options
context:
space:
mode:
Commit13f074686970cf037cbd8a4c492033bb7b14562d (patch)
Author
 Bilyal Mestanov <bmestanov@gmail.com>
2018-11-07 14:49:11 +0200
Committer
 dtrendafilov <trendafilov.dn@gmail.com>
2018-11-07 14:49:11 +0200
Files5fc01ccd3947a8baaf62433be16c6b9f68a3d181 /homework/81270/js2html/Highlighter.h
IPL-13f074686970cf037cbd8a4c492033bb7b14562d.tar
IPL-13f074686970cf037cbd8a4c492033bb7b14562d.tar.gz
IPL-13f074686970cf037cbd8a4c492033bb7b14562d.zip
Parent93cd8cac8a616ae13bd42dcbee0bb9da278eb49d (diff)
Add homework 1 (#23)
1 files changed, 24 insertions, 0 deletions
-rw-r--r--homework/81270/js2html/Highlighter.h24
diff --git a/homework/81270/js2html/Highlighter.h b/homework/81270/js2html/Highlighter.h
new file mode 100644
index 0000000..a655480
--- /dev/null
+++ b/homework/81270/js2html/Highlighter.h
@@ -0,0 +1,24 @@
+//
+// Created by bmestanov on 25.10.18.
+//
+
+#ifndef ES2HTML_HIGHLIGHTER_H
+#define ES2HTML_HIGHLIGHTER_H
+
+#include "Token.h"
+
+class Highlighter {
+public:
+ explicit Highlighter(const char *outputPath = nullptr, const char *stylePath = "style.css");
+
+ void highlight(const IPLVector<Token> &tokens);
+
+private:
+ const char *stylePath;
+ const char *outputPath;
+
+ static IPLString getClass(const Token &token);
+};
+
+
+#endif //ES2HTML_HIGHLIGHTER_H