Skip to content

Commit ce6ea9a

Browse files
author
Viktor Chernev
committed
Integrated Describe v1.0 in Compiler API
1 parent 3d7c442 commit ce6ea9a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+701
-720
lines changed

@DescribeCompilerAPI/Compiler/Compiler/Compiler.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ public bool ChangeGrammar(GrammarName grammarName)
7777
_Preprocessor = new PreprocessorForDescribe10();
7878
break;
7979
}
80-
_Optimizer = new DefaultOptimizer();
8180
LogInfo("Loaded new grammar: \"" + fullname + "\"");
8281
return true;
8382
}

@DescribeCompilerAPI/Compiler/Compiler/Settings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public partial class DescribeCompiler
2929
/// The grammar is usually left alone, unless there is a very good reason to be changed,
3030
/// which, on the other hand, makes this the de facto grammar that is used.
3131
/// </summary>
32-
public static GrammarName DEFAULT_GRAMMAR = GrammarName.Decorators;
32+
public static GrammarName DEFAULT_GRAMMAR = GrammarName.Official;
3333

3434

3535

@DescribeCompilerAPI/Compiler/Compiler/VerbosityLow.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,11 @@ private bool parseFile_LowVerbosity(FileInfo fileInfo, DescribeUnfold unfold)
200200
string source = "";
201201
try
202202
{
203+
if (fileInfo.FullName.Contains("technologiesAndInventions.ds"))
204+
{
205+
bool lll = false;
206+
}
207+
203208
source = File.ReadAllText(fileInfo.FullName);
204209
source = _Preprocessor.ProcessSource(source);
205210
if (source.Length == 0)
File renamed without changes.

@DescribeCompilerAPI/Grammars/DescribeDecorators.egt renamed to @DescribeCompilerAPI/Compiler/Grammars/DescribeDecorators.egt

File renamed without changes.
File renamed without changes.

@DescribeCompilerAPI/Grammars/DescribeOfficial.egt renamed to @DescribeCompilerAPI/Compiler/Grammars/DescribeOfficial.egt

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)