Returns the current token, does not advance
()
| 103 | |
| 104 | // Returns the current token, does not advance |
| 105 | func (m *LexTokenPager) Cur() lex.Token { |
| 106 | if m.cursor+1 > len(m.tokens) { |
| 107 | //u.Warnf("Next() CRAP? increment cursor: %v of %v %v", m.cursor, len(m.tokens), m.cursor < len(m.tokens)) |
| 108 | return eoft |
| 109 | } |
| 110 | return m.tokens[m.cursor] |
| 111 | } |
| 112 | |
| 113 | // IsEnd determines if pager is at end of statement |
| 114 | func (m *LexTokenPager) IsEnd() bool { |