55 const int INITIAL_STATE = 0;
60 int saved_yytoken = -1;
62 int error_lineno = -1;
63 int error_column = -1;
76 if (saved_yytoken == -1)
77 yytoken = lexer.
lex();
80 yytoken = saved_yytoken;
125 saved_yytoken = yytoken;
130 else if ((state == INITIAL_STATE) && (yytoken == 0)) {
139 int expected_tokens [3];
151 expected_tokens [shifts] = tk;
156 error_message.
clear ();
157 if (shifts && shifts < 3)
161 for (
int s = 0; s < shifts; ++s)
180 checkerState =
Error;
185 if (checkerState ==
Error) {
188 else if (yytoken == 0)
191 return Result(checkerState, error_lineno, error_column, error_message);
#define QT_END_NAMESPACE
This macro expands to.
#define Q_SCRIPT_REGEXPLITERAL_RULE1
Q_CORE_EXPORT void qFree(void *ptr)
static int t_action(int state, int token)
static int nt_action(int state, int nt)
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
#define Q_SCRIPT_REGEXPLITERAL_RULE2
The QString class provides a Unicode character string.
Result checkSyntax(const QString &code)
bool automatic(QScript::Lexer *lexer, int token) const
#define QT_BEGIN_NAMESPACE
This macro expands to.
QString errorMessage() const
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
bool scanRegExp(RegExpBodyPrefix prefix=NoPrefix)
The State element defines configurations of objects and properties.
bool prevTerminator() const
static const short action_index[]
void clear()
Clears the contents of the string and makes it empty.
static const char *const spell[]
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
void setCode(const QString &c, int lineno)
int startColumnNo() const