36 #define shiftWindowsLineBreak() \ 38 if (((current == '\r') && (next1 == '\n')) \ 39 || ((current == '\n') && (next1 == '\r'))) { \ 54 size8(128), size16(128), restrKeyword(false),
55 stackToken(-1), pos(0),
58 current(0), next1(0), next2(0), next3(0),
61 parenthesesState(IgnoreParentheses),
62 prohibitAutomaticSemicolon(false)
551 }
else if (
current == stringType) {
567 }
else if (
current == stringType) {
692 Q_ASSERT_X(0,
"Lexer::lex",
"Unhandled state in switch statement");
785 Q_ASSERT(!
"unhandled numeration value in switch");
804 return ((c >=
'a' && c <=
'z')
805 || (c >=
'A' && c <=
'Z')
812 return (c >=
'0' && c <=
'9');
817 return ((c >=
'0' && c <=
'9')
818 || (c >=
'a' && c <=
'f')
819 || (c >=
'A' && c <=
'F'));
824 return (c >=
'0' && c <=
'7');
830 if (c1 ==
'>' && c2 ==
'>' && c3 ==
'>' && c4 ==
'=') {
833 }
else if (c1 ==
'=' && c2 ==
'=' && c3 ==
'=') {
836 }
else if (c1 ==
'!' && c2 ==
'=' && c3 ==
'=') {
839 }
else if (c1 ==
'>' && c2 ==
'>' && c3 ==
'>') {
842 }
else if (c1 ==
'<' && c2 ==
'<' && c3 ==
'=') {
845 }
else if (c1 ==
'>' && c2 ==
'>' && c3 ==
'=') {
848 }
else if (c1 ==
'<' && c2 ==
'=') {
851 }
else if (c1 ==
'>' && c2 ==
'=') {
854 }
else if (c1 ==
'!' && c2 ==
'=') {
857 }
else if (c1 ==
'+' && c2 ==
'+') {
860 }
else if (c1 ==
'-' && c2 ==
'-') {
863 }
else if (c1 ==
'=' && c2 ==
'=') {
866 }
else if (c1 ==
'+' && c2 ==
'=') {
869 }
else if (c1 ==
'-' && c2 ==
'=') {
872 }
else if (c1 ==
'*' && c2 ==
'=') {
875 }
else if (c1 ==
'/' && c2 ==
'=') {
878 }
else if (c1 ==
'&' && c2 ==
'=') {
881 }
else if (c1 ==
'^' && c2 ==
'=') {
884 }
else if (c1 ==
'%' && c2 ==
'=') {
887 }
else if (c1 ==
'|' && c2 ==
'=') {
890 }
else if (c1 ==
'<' && c2 ==
'<') {
893 }
else if (c1 ==
'>' && c2 ==
'>') {
896 }
else if (c1 ==
'&' && c2 ==
'&') {
899 }
else if (c1 ==
'|' && c2 ==
'|') {
963 return ((c1 -
'0') * 64 + (c2 -
'0') * 8 + c3 -
'0');
968 if (c >=
'0' && c <=
'9')
970 else if (c >=
'a' && c <=
'f')
971 return (c -
'a' + 10);
973 return (c -
'A' + 10);
994 char *tmp =
new char[2 *
size8];
1027 bool lastWasEscape =
false;
1037 else if (
current !=
'/' || lastWasEscape ==
true)
1040 lastWasEscape = !lastWasEscape && (
current ==
'\\');
1062 case 'g': flag = 0x01;
break;
1063 case 'm': flag = 0x02;
break;
1064 case 'i': flag = 0x04;
break;
void syncProhibitAutomaticSemicolon()
#define QT_END_NAMESPACE
This macro expands to.
bool isLineTerminator() const
#define shiftWindowsLineBreak()
QScriptEnginePrivate * driver
Q_CORE_EXPORT double qstrtod(const char *s00, char const **se, bool *ok)
int length() const
Returns the number of characters in this string.
bool isWhiteSpace() const
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
bool isHexDigit(ushort c) const
The QString class provides a Unicode character string.
The QChar class provides a 16-bit Unicode character.
static bool isIdentLetter(ushort c)
bool isOctalDigit(ushort c) const
#define QT_BEGIN_NAMESPACE
This macro expands to.
int matchPunctuator(ushort c1, ushort c2, ushort c3, ushort c4)
const QChar * unicode() const
Returns a '\0'-terminated Unicode representation of the string.
Lexer(QScriptEnginePrivate *eng)
QScriptNameIdImpl * pattern
union QScript::Lexer::@359 qsyylval
bool scanRegExp(RegExpBodyPrefix prefix=NoPrefix)
The State element defines configurations of objects and properties.
static unsigned char convertHex(ushort c1)
#define Q_ASSERT_X(cond, where, what)
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
int findReservedWord(const QChar *buffer, int size) const
static bool isDecimalDigit(ushort c)
ushort convertOctal(ushort c1, ushort c2, ushort c3) const
ParenthesesState parenthesesState
bool prohibitAutomaticSemicolon
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
void setCode(const QString &c, int lineno)
static QChar convertUnicode(ushort c1, ushort c2, ushort c3, ushort c4)
ushort singleEscape(ushort c) const
qsreal integerFromString(const char *buf, int size, int radix)