From 76699050049febe4c7eb0199cd0ae9d13fb36b74 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Tue, 7 Feb 2017 16:56:57 +0000 Subject: Changing file structure --- c_lexer/src/c_lexer.cpp | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 c_lexer/src/c_lexer.cpp (limited to 'c_lexer/src/c_lexer.cpp') diff --git a/c_lexer/src/c_lexer.cpp b/c_lexer/src/c_lexer.cpp new file mode 100644 index 0000000..e01d73f --- /dev/null +++ b/c_lexer/src/c_lexer.cpp @@ -0,0 +1,7 @@ +#include "c_lexer.hpp" + +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) { + std::string tmp = "{\"Class\":\"" + classType + "\", \"Text\":\"" + text + "\", \"StreamLine\":" + strLine + ", \"SourceFile\":\"" + fName + "\", \"SourceLine\":" + srcLine + ", \"SourceCol\":" + srcCol + "}"; + + return tmp; +} -- cgit