From 49ff65e37739480fc843b81d3c27a3deb5f9f0bf Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Tue, 7 Feb 2017 19:02:06 +0000 Subject: Started parser but not working yet, finished makefile --- c_parser/include/c_lexer.hpp | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 c_parser/include/c_lexer.hpp (limited to 'c_parser/include') diff --git a/c_parser/include/c_lexer.hpp b/c_parser/include/c_lexer.hpp deleted file mode 100644 index 059664a..0000000 --- a/c_parser/include/c_lexer.hpp +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef C_LEXER_HPP -#define C_LEXER_HPP - -#include - -enum TokenType { - None, - Keyword, - Identifier, - Operator, - Constant, - StringLiteral, - Invalid -}; - -// Global variable that will be looked for by byson -extern std::string *yylval; - -// flex function to run on input -extern int yylex(); - -extern int yyleng; - -extern int lineCount; -extern int spaceCount; -extern int sourceLineCount; - -extern std::string fileName; - -// get the correct output -std::string toJson(const std::string& classType, const std::string& text, const std::string& strLine, const std::string& srcCol, const std::string& srcLine, const std::string& fName); - -#endif -- cgit