public TokenQueue Init(TokenQueue tokens) { pos = 0; linenumber = 1; columnnumber = 1; return(Init0(tokens)); }
public CompilerContext(string source) { Tokenizer = new Tokenizer(source.ToCharArray()); Tokens = new TokenQueue(); TempData = new TempDataWriter(); Results = new List <ExcutableCommand>(); }
private TokenQueue Init0(TokenQueue tokens) { while (pos < sourceText.Length) { SkipWhiteSpace(); tokens.Enqueue(NexToken()); } return(tokens); }
protected static ExcutableCommand Clone(TokenQueue seq, Command r) { r = (Command)r.Clone(); r.parameters = seq.DeQueueLine(); return((ExcutableCommand)r); }
public virtual ExcutableCommand Create(TokenQueue seq, Token first, CompilerApplication context) { return(Clone(seq, this)); }