Esempio n. 1
0
 private void ReadReserved()
 {
     if (!char.IsLetter(this.reader.Current))
     {
         return;
     }
     this.ReadName();
     Lexer.ReservedWord reservedWord = Lexer.ReservedWords.Lookup(this.TokenString);
     if (reservedWord == null)
     {
         return;
     }
     this.token = reservedWord.Token;
     this.op    = reservedWord.Operator;
 }
Esempio n. 2
0
 private static int Compare(Lexer.ReservedWord reserved1, Lexer.ReservedWord reserved2)
 {
     return(string.Compare(reserved1.Word, reserved2.Word, false, CultureInfo.InvariantCulture));
 }