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; }
private static int Compare(Lexer.ReservedWord reserved1, Lexer.ReservedWord reserved2) { return(string.Compare(reserved1.Word, reserved2.Word, false, CultureInfo.InvariantCulture)); }