Remove precedence and associativity methods from ParseAction

This commit is contained in:
Max Brunsfeld 2017-07-13 13:41:56 -07:00
parent d646889922
commit 561821d011
3 changed files with 4 additions and 31 deletions

View file

@ -28,13 +28,10 @@ struct ParseAction {
static ParseAction Error();
static ParseAction Shift(ParseStateId state_index);
static ParseAction Recover(ParseStateId state_index);
static ParseAction Reduce(rules::Symbol symbol, size_t consumed_symbol_count,
const Production &);
static ParseAction Reduce(rules::Symbol symbol, size_t child_count, const Production &);
static ParseAction ShiftExtra();
bool operator==(const ParseAction &) const;
bool operator<(const ParseAction &) const;
rules::Associativity associativity() const;
int precedence() const;
const Production *production;
size_t consumed_symbol_count;