IronKonoha.KStatement.lookAheadKeyword C# (CSharp) Method

lookAheadKeyword() public method

public lookAheadKeyword ( IList tls, int s, int e, Token rule ) : int
tls IList
s int
e int
rule Token
return int
        public int lookAheadKeyword(IList<Token> tls, int s, int e, Token rule)
        {
            int i;
            for (i = s; i < e; i++)
            {
                Token tk = tls[i];
                if (rule.Keyword == tk.Keyword)
                    return i;
            }
            return -1;
        }