protected Scope(TextPosition tp) : base(tp) { Name = string.Empty; ChildSymbols = new Dictionary<string, OverLoadSet>(); ReferenceCache = new Dictionary<string, OverLoadChain>(); }
public TextPosition AlterLength(TextPosition? other) { if(!other.HasValue) { return this; } return AlterLength(other.Value.Length + other.Value.Total - Total); }
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; }
public Tokenizer(string text, string fileName) { Text = text; _Position = new TextPosition { File = fileName, Line = 1 }; }