The method returns the last token recognized by the lexer.
Change-Id: I9464e96c1276852737ddc8330d08d57326b48888
Reviewed-on: http://codereview.qt-project.org/5015
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
return (c >= '0' && c <= '7');
}
+int Lexer::tokenKind() const
+{
+ return _tokenKind;
+}
+
int Lexer::tokenOffset() const
{
return _tokenStartPtr - _code.unicode();
int regExpFlags() const { return _patternFlags; }
QString regExpPattern() const { return _tokenText; }
+ int tokenKind() const;
int tokenOffset() const;
int tokenLength() const;