blob: 0e9f02162365046cb93500cfc2799e6afaf18ce7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#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;
}
|