diff options
Добавяне на второ домашно (#30)
* 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
1 files changed, 18 insertions, 0 deletions
| -rw-r--r-- | homework/81568/c2html/html_utils.h | 18 |
diff --git a/homework/81568/c2html/html_utils.h b/homework/81568/c2html/html_utils.h new file mode 100644 index 0000000..8d8cf0d --- /dev/null +++ b/homework/81568/c2html/html_utils.h @@ -0,0 +1,18 @@ +#ifndef HTML_UTILS_H +#define HTML_UTILS_H + +#include "lexcer.h" +using LexCer::Token; +using LexCer::TokenClass; +using LexCer::Tokenizer; + +namespace HTMLUtils { + +std::string escapeHTML(const std::string &lexeme); +bool writeToOutput(FILE *out, Token token); +std::string getOutputFileName(const std::string &name); +void lexCit(FILE *in, FILE *out); + +} /* Namespace HMTLUtils */ + +#endif /* HTML_UTILS_H */ |
