From 65c7618c2a8834616b009195f10c6cd762f43b8a Mon Sep 17 00:00:00 2001 From: Mincho Paskalev Date: Wed, 7 Nov 2018 10:31:59 +0200 Subject: Добавяне на второ домашно (#30) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add 1st hw * --amend * moving readme for 1st hw to designated folder * renamed TokenType enum to TokenClass * fixed character constant lexing. added sampe output file * add new line at end-of-file. added gitignore * a bit of refactoring * adding cyclomatic complexity * refactored * adding cyclomatic complexity * refactored --- homework/81568/c2html/lexconst.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'homework/81568/c2html/lexconst.h') diff --git a/homework/81568/c2html/lexconst.h b/homework/81568/c2html/lexconst.h index 9d2068d..cfb9e6d 100644 --- a/homework/81568/c2html/lexconst.h +++ b/homework/81568/c2html/lexconst.h @@ -25,6 +25,9 @@ static const std::unordered_map tokenToClass {TokenClass::Number, "number"}, {TokenClass::Invalid, "invalid"}, {TokenClass::LeftParen, "identifier"}, + {TokenClass::LeftCurly, "identifier"}, + {TokenClass::RightParen, "identifier"}, + {TokenClass::RightCurly, "identifier"}, {TokenClass::RightParen, "identifier"} } }; -- cgit v1.3.1-26-gb76a