From 93cd8cac8a616ae13bd42dcbee0bb9da278eb49d Mon Sep 17 00:00:00 2001 From: Ralitsa Velikova Date: Wed, 7 Nov 2018 14:26:16 +0200 Subject: 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 --- homework/81013/go2html/main.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 homework/81013/go2html/main.cpp (limited to 'homework/81013/go2html/main.cpp') 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 +#include +#include +#include + +#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; +} -- cgit v1.3.1-23-gd82d