6#include <QtCore/qdir.h>
92 else if (
token ==
'%')
102 if (
text ==
"token_prefix"_L1)
104 else if (
text ==
"merged_output"_L1)
106 else if (
text ==
"token"_L1)
108 else if (
text ==
"start"_L1)
110 else if (
text ==
"parser"_L1)
112 else if (
text ==
"decl"_L1)
114 else if (
text ==
"impl"_L1)
116 else if (
text ==
"expect"_L1)
118 else if (
text ==
"expect-rr"_L1)
120 else if (
text ==
"left"_L1)
122 else if (
text ==
"right"_L1)
124 else if (
text ==
"nonassoc"_L1)
126 else if (
text ==
"prec"_L1)
138 if (
token ==
'-' &&
ch == u
'-')
145 else if (
token ==
':' &&
ch == u
':')
154 else if (
token ==
'/' &&
ch == u
':')
171 if (
token ==
':' &&
ch == u
'/')
192 else if (
token ==
'/' &&
ch == u
'.')
210 if (
token ==
'.' &&
ch == u
'/')
255 qerr() <<
"qlalr: no input file\n";
QMap< Name, QString > spells
int expected_reduce_reduce
QMap< Name, TokenInfo > token_info
std::list< QString > names
bool isTerminal(Name name) const
Name intern(const QString &id)
int expected_shift_reduce
constexpr bool isLetterOrNumber() const noexcept
Returns true if the character is a letter or number (Letter_* or Number_* categories); otherwise retu...
constexpr char16_t unicode() const noexcept
Returns the numeric Unicode value of the QChar.
constexpr bool isNull() const noexcept
Returns true if the character is the Unicode character 0x0000 ('\0'); otherwise returns false.
constexpr bool isSpace() const noexcept
Returns true if the character is a separator character (Separator_* categories or certain code points...
static QString fromNativeSeparators(const QString &pathName)
bool open(OpenMode flags) override
Opens the file using OpenMode mode, returning true if successful; otherwise false.
void resize(qsizetype size)
iterator insert(const Key &key, const T &value)
\macro QT_RESTRICTED_CAST_FROM_ASCII
const_iterator constEnd() const
Returns a const \l{STL-style iterators}{STL-style iterator} pointing just after the last character in...
int toInt(bool *ok=nullptr, int base=10) const
Returns the string converted to an int using base base, which is 10 by default and must be between 2 ...
void clear()
Clears the contents of the string and makes it null.
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
const_iterator constBegin() const
Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the first character in the st...
bool parse(const QString &input_file=QString())
QString::const_iterator _M_firstChar
QString::const_iterator _M_currentChar
RulePointer _M_current_rule
QString expand(const QString &text) const
QList< QString > sym_stack
Recognizer(Grammar *grammar, bool no_lines)
QString::const_iterator _M_lastChar
static int t_action(int state, int token)
static int nt_action(int state, int nt)
static const short action_index[]
QSet< QString >::iterator it
QT_BEGIN_NAMESPACE QTextStream & qerr()
std::list< QString >::iterator Name
QTextStream & endl(QTextStream &stream)
Writes '\n' to the stream and flushes the stream.
QFileInfo info(fileName)
[8]
\inmodule QtCore \reentrant