|
@@ -87,6 +87,8 @@ namespace NTERA.Compiler
|
|
|
"ITEMSALES",
|
|
|
"FORWARD", //special casing for SORTCHARA
|
|
|
"BACK", //special casing for SORTCHARA
|
|
|
+ "LEFT", //special casing for __FORMAT
|
|
|
+ "RIGHT", //special casing for __FORMAT
|
|
|
"DEBUG_MODE",
|
|
|
};
|
|
|
|
|
@@ -173,6 +175,7 @@ namespace NTERA.Compiler
|
|
|
new FunctionDefinition("POWER", new[] { new FunctionParameter("a", new string[0]), new FunctionParameter("b", new string[0]) }, new FunctionVariable[0], true, "_GLOBAL", new Marker()),
|
|
|
new FunctionDefinition("GETPALAMLV", new[] { new FunctionParameter("a", new string[0]), new FunctionParameter("b", new string[0]) }, new FunctionVariable[0], true, "_GLOBAL", new Marker()),
|
|
|
new FunctionDefinition("GETBIT", new[] { new FunctionParameter("a", new string[0]), new FunctionParameter("b", new string[0]) }, new FunctionVariable[0], true, "_GLOBAL", new Marker()),
|
|
|
+ new FunctionDefinition("GETEXPLV", new[] { new FunctionParameter("a", new string[0]), new FunctionParameter("b", new string[0]) }, new FunctionVariable[0], true, "_GLOBAL", new Marker()),
|
|
|
new FunctionDefinition("UNICODE", new[] { new FunctionParameter("a", new string[0]) }, new FunctionVariable[0], true, "_GLOBAL", new Marker()),
|
|
|
new FunctionDefinition("MATCH", new[] { new FunctionParameter("a", new string[0]), new FunctionParameter("b", new string[0]), new FunctionParameter("c", new string[0], "a"), new FunctionParameter("d", new string[0], "f"), }, new FunctionVariable[0], true, "_GLOBAL", new Marker()),
|
|
|
new FunctionDefinition("INRANGE", new[] { new FunctionParameter("a", new string[0]), new FunctionParameter("b", new string[0]), new FunctionParameter("c", new string[0]), }, new FunctionVariable[0], true, "_GLOBAL", new Marker()),
|
|
@@ -199,34 +202,36 @@ namespace NTERA.Compiler
|
|
|
new FunctionDefinition("GETMILLISECOND", new FunctionParameter[0], new FunctionVariable[0], true, "_GLOBAL", new Marker()),
|
|
|
};
|
|
|
|
|
|
- var stringStatements = new List<string>
|
|
|
+ var stringStatements = new List<Keyword>
|
|
|
{
|
|
|
- "DRAWLINEFORM",
|
|
|
- "PRINTFORML",
|
|
|
- "PRINT",
|
|
|
- "PRINTW",
|
|
|
- "PRINTV",
|
|
|
- "PRINTL",
|
|
|
- "PRINTLC",
|
|
|
- "PRINTC",
|
|
|
- "ALIGNMENT",
|
|
|
- "CALL",
|
|
|
- "CUSTOMDRAWLINE",
|
|
|
- "DATAFORM",
|
|
|
- "GOTO",
|
|
|
- "PRINTFORMDL",
|
|
|
- "PRINTFORMW",
|
|
|
- "PRINTFORMDW",
|
|
|
- "PRINTFORMC",
|
|
|
- "PRINTFORMLC",
|
|
|
- "PRINTFORM",
|
|
|
- "PRINTPLAINFORM",
|
|
|
- "DEBUGPRINTL",
|
|
|
- "DEBUGPRINTFORML",
|
|
|
- "REUSELASTLINE",
|
|
|
- "PRINTPLAIN",
|
|
|
- "PRINT_TRAIN_NAME",
|
|
|
- "PRINT_STR",
|
|
|
+ new Keyword("DRAWLINEFORM", true, true),
|
|
|
+ new Keyword("PRINTFORML", true, true),
|
|
|
+ new Keyword("DATAFORM", true, true),
|
|
|
+ new Keyword("PRINTFORMD", true, true),
|
|
|
+ new Keyword("PRINTFORMDL", true, true),
|
|
|
+ new Keyword("PRINTFORMW", true, true),
|
|
|
+ new Keyword("PRINTFORMDW", true, true),
|
|
|
+ new Keyword("PRINTFORMC", true, true),
|
|
|
+ new Keyword("PRINTFORMLC", true, true),
|
|
|
+ new Keyword("PRINTFORM", true, true),
|
|
|
+ new Keyword("PRINTPLAINFORM", true, true),
|
|
|
+ new Keyword("DEBUGPRINTFORML", true, true),
|
|
|
+
|
|
|
+ new Keyword("PRINT", true),
|
|
|
+ new Keyword("PRINTW", true),
|
|
|
+ new Keyword("PRINTV", true),
|
|
|
+ new Keyword("PRINTL", true),
|
|
|
+ new Keyword("PRINTLC", true),
|
|
|
+ new Keyword("PRINTC", true),
|
|
|
+ new Keyword("ALIGNMENT", true),
|
|
|
+ new Keyword("CALL", true, true),
|
|
|
+ new Keyword("CUSTOMDRAWLINE", true),
|
|
|
+ new Keyword("GOTO", true),
|
|
|
+ new Keyword("DEBUGPRINTL", true),
|
|
|
+ new Keyword("REUSELASTLINE", true),
|
|
|
+ new Keyword("PRINTPLAIN", true),
|
|
|
+ new Keyword("PRINT_TRAIN_NAME", true),
|
|
|
+ new Keyword("PRINT_STR", true),
|
|
|
};
|
|
|
|
|
|
string csvPath = Path.Combine(InputDirectory, "CSV");
|
|
@@ -252,7 +257,7 @@ namespace NTERA.Compiler
|
|
|
#else
|
|
|
Parallel.ForEach(Directory.EnumerateFiles(erbPath, "*.erb", SearchOption.AllDirectories), new ParallelOptions
|
|
|
{
|
|
|
- MaxDegreeOfParallelism = 4
|
|
|
+ MaxDegreeOfParallelism = 8
|
|
|
}, file =>
|
|
|
#endif
|
|
|
{
|
|
@@ -283,7 +288,7 @@ namespace NTERA.Compiler
|
|
|
#else
|
|
|
Parallel.ForEach(DeclaredFunctions, new ParallelOptions
|
|
|
{
|
|
|
- MaxDegreeOfParallelism = 4
|
|
|
+ MaxDegreeOfParallelism = 8
|
|
|
}, kv =>
|
|
|
#endif
|
|
|
{
|