![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <lalr.h>
Classes | |
struct | TokenInfo |
Public Types | |
enum | Assoc { NonAssoc , Left , Right } |
Public Member Functions | |
Grammar () | |
Name | intern (const QString &id) |
Name | intern (const char *id) |
bool | isTerminal (Name name) const |
bool | isNonTerminal (Name name) const |
void | buildRuleMap () |
void | buildExtendedGrammar () |
Public Attributes | |
QString | merged_output |
QString | table_name |
QString | decl_file_name |
QString | impl_file_name |
QString | token_prefix |
std::list< QString > | names |
Name | start |
NameSet | terminals |
NameSet | non_terminals |
QMap< Name, QString > | spells |
debug_infot | rules |
RuleMap | rule_map |
RulePointer | goal |
Name | tk_end |
Name | accept_symbol |
NameSet | declared_lhs |
int | expected_shift_reduce |
int | expected_reduce_reduce |
QMap< Name, TokenInfo > | token_info |
Assoc | current_assoc |
int | current_prec |
enum Grammar::Assoc |
Grammar::Grammar | ( | ) |
Definition at line 166 of file lalr.cpp.
References Grammar(), current_assoc, current_prec, expected_reduce_reduce, expected_shift_reduce, intern(), NonAssoc, terminals, and tk_end.
Referenced by Grammar().
void Grammar::buildExtendedGrammar | ( | ) |
Definition at line 213 of file lalr.cpp.
References accept_symbol, goal, intern(), non_terminals, rules, start, and tk_end.
Referenced by main().
void Grammar::buildRuleMap | ( | ) |
Definition at line 193 of file lalr.cpp.
References declared_lhs, isTerminal(), rule_map, and rules.
Referenced by main().
|
inline |
Definition at line 220 of file lalr.h.
Referenced by Grammar(), and buildExtendedGrammar().
|
inline |
Definition at line 225 of file lalr.h.
References non_terminals.
Referenced by Automaton::buildDirectReads(), Automaton::buildIncludesDigraph(), Automaton::buildLookbackSets(), Automaton::buildReadsDigraph(), Automaton::closure(), CppGenerator::operator()(), and ParseTable::operator()().
|
inline |
Definition at line 222 of file lalr.h.
References terminals.
Referenced by Automaton::buildDirectReads(), buildRuleMap(), DotGraph::operator()(), ParseTable::operator()(), and Recognizer::parse().
Name Grammar::accept_symbol |
Definition at line 246 of file lalr.h.
Referenced by buildExtendedGrammar().
Assoc Grammar::current_assoc |
Definition at line 263 of file lalr.h.
Referenced by Grammar(), and Recognizer::parse().
int Grammar::current_prec |
Definition at line 264 of file lalr.h.
Referenced by Grammar(), and Recognizer::parse().
NameSet Grammar::declared_lhs |
Definition at line 247 of file lalr.h.
Referenced by buildRuleMap(), and Recognizer::parse().
int Grammar::expected_reduce_reduce |
Definition at line 249 of file lalr.h.
Referenced by Grammar(), and CppGenerator::operator()().
int Grammar::expected_shift_reduce |
Definition at line 248 of file lalr.h.
Referenced by Grammar(), and CppGenerator::operator()().
RulePointer Grammar::goal |
Definition at line 244 of file lalr.h.
Referenced by Automaton::build(), buildExtendedGrammar(), and CppGenerator::operator()().
NameSet Grammar::non_terminals |
Definition at line 240 of file lalr.h.
Referenced by buildExtendedGrammar(), isNonTerminal(), CppGenerator::operator()(), and Recognizer::parse().
RuleMap Grammar::rule_map |
Definition at line 243 of file lalr.h.
Referenced by buildRuleMap().
debug_infot Grammar::rules |
Definition at line 242 of file lalr.h.
Referenced by State::State(), buildExtendedGrammar(), Automaton::buildNullables(), buildRuleMap(), Recognizer::expand(), Automaton::id(), main(), CppGenerator::operator()(), ParseTable::operator()(), and Recognizer::parse().
Name Grammar::start |
Definition at line 238 of file lalr.h.
Referenced by buildExtendedGrammar(), Recognizer::expand(), main(), and Recognizer::parse().
NameSet Grammar::terminals |
Definition at line 239 of file lalr.h.
Referenced by Grammar(), isTerminal(), CppGenerator::operator()(), and Recognizer::parse().
Name Grammar::tk_end |
Definition at line 245 of file lalr.h.
Referenced by Grammar(), and buildExtendedGrammar().