示例#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 };
 }