diff options
| Commit | 93cd8cac8a616ae13bd42dcbee0bb9da278eb49d (patch) | |
|---|---|---|
| Author | 2018-11-07 14:26:16 +0200 | |
| Committer | 2018-11-07 14:26:16 +0200 | |
| Files | ce8b306af9c36d6443fe2fc34526223e44c804cf /homework/81013/go2html/main.cpp | |
| IPL-93cd8cac8a616ae13bd42dcbee0bb9da278eb49d.tar IPL-93cd8cac8a616ae13bd42dcbee0bb9da278eb49d.tar.gz IPL-93cd8cac8a616ae13bd42dcbee0bb9da278eb49d.zip | ||
| Parent | 47e8c6f331525f01f150ba80a3557a18618b0cf5 (diff) | |
Solution to first homework (#25)
* Add token types enum for Lexer
* Local test if I've correctly switched from https to ssh
* Adds initial Lexer logic; Reuses JSImpl's Lexer logic; Still needs refactoring;
* Adds README.md
* Adds README.md
* Adds tokenization of strings and a few operators
* Adds some operators
* Adds highlighter and sample for future testing
* Adds runes & fixes double whitespace bug
* API fix, premake, solution
* Update README.md
* Delete HL.sln
* Delete HL.vcxproj
1 files changed, 19 insertions, 0 deletions
| -rw-r--r-- | homework/81013/go2html/main.cpp | 19 |
diff --git a/homework/81013/go2html/main.cpp b/homework/81013/go2html/main.cpp new file mode 100644 index 0000000..4a8d65a --- /dev/null +++ b/homework/81013/go2html/main.cpp @@ -0,0 +1,19 @@ +#include <iostream> +#include <string> +#include <fstream> +#include <sstream> + +#include "CommonTypes.h" +#include "Lexer.h" +#include "Highlighter.h" + +int main(int argc, char **argv) +{ + // todo: WRITE PROPER TESTS + std::ifstream infile(argv[1]); + std::ofstream offile(argv[2]); + + Highlight(infile, offile); + + return 0; +} |
