优化注释
This commit is contained in:
@@ -5,18 +5,17 @@ int main()
|
|||||||
{
|
{
|
||||||
using namespace Fig;
|
using namespace Fig;
|
||||||
|
|
||||||
String fileName = "test.fig";
|
String fileName = "[memory]";
|
||||||
String filePath =
|
String filePath =
|
||||||
"T:/Files/Maker/Code/MyCodingLanguage/The Fig Project/Fig/" + fileName;
|
"System" + fileName;
|
||||||
|
|
||||||
SourceManager srcManager(filePath);
|
SourceManager srcManager(filePath);
|
||||||
|
|
||||||
String source = srcManager.Read();
|
String source = R"(
|
||||||
if (!srcManager.read)
|
var a = 10;
|
||||||
{
|
var a: Int;
|
||||||
std::cerr << "Couldn't read file: " << filePath << '\n';
|
var a := 200 * 30 + 2;
|
||||||
return 1;
|
)";
|
||||||
}
|
|
||||||
|
|
||||||
Lexer lexer(source, fileName);
|
Lexer lexer(source, fileName);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user