aboutsummaryrefslogtreecommitdiffstats
path: root/c_parser/include
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-02-07 19:02:06 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-02-07 19:02:06 +0000
commit49ff65e37739480fc843b81d3c27a3deb5f9f0bf (patch)
treea43ff33ee6ccc1af33bb0e37b36a40edec0af1f7 /c_parser/include
parent934fc643b33e1af6c13e5658133c93a6a35b7cbd (diff)
downloadCompiler-49ff65e37739480fc843b81d3c27a3deb5f9f0bf.tar.gz
Compiler-49ff65e37739480fc843b81d3c27a3deb5f9f0bf.zip
Started parser but not working yet, finished makefile
Diffstat (limited to 'c_parser/include')
-rw-r--r--c_parser/include/c_lexer.hpp33
1 files changed, 0 insertions, 33 deletions
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 <string>
-
-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