* Extract base classes from ParserTools (local) and GPPGParserHelper * Fix string resources error * Extract base class for unexpected token error * Update ParserTools project file * Add comments for compiler directives usages in compiler * Add directives checks * Move string constants to new project * Implement scalable directives checks * Remove known directives from compiler * Fix PABCSystem namespace error * Allow region and endregion with no params * Allow parameters to endif directive * Delete directive parameters extension checks * Replace error with warning for uknown directive case * Fix generate native code (semantic rule) assigning * Improve error messages for directives * Rename RunParseThread to SwitchOnIntellisence Для отладки может требоваться отключение Intellisence на уровне кода. Для понятности метод назван SwitchOnIntellisence. * Resolve merge conflicts * Add new compiler errors for unsupported target framework and output file type * Add documentation to directives checks * Fix directives check loop
21 lines
830 B
C#
21 lines
830 B
C#
// Copyright (c) Ivan Bondarev, Stanislav Mikhalkovich (for details please see \doc\copyright.txt)
|
||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||
|
||
namespace PascalABCCompiler.TreeRealization
|
||
{
|
||
public class compiler_directive
|
||
{
|
||
public string name;
|
||
public string directive;
|
||
public location location;
|
||
public string source_file; // Файл из которого загрузили директиву. В отличии от location - может указывать на .pcu
|
||
|
||
public compiler_directive(string name, string directive, location loc, string source_file)
|
||
{
|
||
this.name = name;
|
||
this.directive = directive;
|
||
this.location = loc;
|
||
this.source_file = source_file;
|
||
}
|
||
}
|
||
} |