コード例 #1
0
 public TokenQueue Init(TokenQueue tokens)
 {
     pos          = 0;
     linenumber   = 1;
     columnnumber = 1;
     return(Init0(tokens));
 }
コード例 #2
0
 public CompilerContext(string source)
 {
     Tokenizer = new Tokenizer(source.ToCharArray());
     Tokens    = new TokenQueue();
     TempData  = new TempDataWriter();
     Results   = new List <ExcutableCommand>();
 }
コード例 #3
0
        private TokenQueue Init0(TokenQueue tokens)
        {
            while (pos < sourceText.Length)
            {
                SkipWhiteSpace();
                tokens.Enqueue(NexToken());
            }

            return(tokens);
        }
コード例 #4
0
 protected static ExcutableCommand Clone(TokenQueue seq, Command r)
 {
     r            = (Command)r.Clone();
     r.parameters = seq.DeQueueLine();
     return((ExcutableCommand)r);
 }
コード例 #5
0
 public virtual ExcutableCommand Create(TokenQueue seq, Token first, CompilerApplication context)
 {
     return(Clone(seq, this));
 }