Пример #1
0
 protected Scope(TextPosition tp)
     : base(tp)
 {
     Name = string.Empty;
     ChildSymbols = new Dictionary<string, OverLoadSet>();
     ReferenceCache = new Dictionary<string, OverLoadChain>();
 }
Пример #2
0
 public TextPosition AlterLength(TextPosition? other)
 {
     if(!other.HasValue)
     {
         return this;
     }
     return AlterLength(other.Value.Length + other.Value.Total - Total);
 }
Пример #3
0
 public TokenCollection(string text, string fileName, List<Token> tokenList, List<Token> errorToken, TextPosition lastPosition)
 {
     Text = text;
     FileName = fileName;
     _TokenList = tokenList;
     _ErrorToken = errorToken;
     FirstPosition = new TextPosition { File = fileName };
     LastPosition = lastPosition;
 }
Пример #4
0
 public Tokenizer(string text, string fileName)
 {
     Text = text;
     _Position = new TextPosition { File = fileName, Line = 1 };
 }