parse: minor formatting fix
This commit is contained in:
parent
c1490a5ad8
commit
bb018683c9
2 changed files with 3 additions and 6 deletions
|
@ -88,9 +88,7 @@ static inline void parse_reduce_9(solar::rule_t * rule, __attribute__((unused))
|
||||||
grammar->rules.push_back(*rule);
|
grammar->rules.push_back(*rule);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline solar::rule_t * parse_reduce_10(std::string * lhs, rhs_t * rhs, std::string * action, __attribute__((unused)) solar::grammar_t * grammar) {return
|
static inline solar::rule_t * parse_reduce_10(std::string * lhs, rhs_t * rhs, std::string * action, __attribute__((unused)) solar::grammar_t * grammar) {return new solar::rule_t {solar::item_t(*lhs, rhs->first), rhs->second, *action};}
|
||||||
new solar::rule_t {solar::item_t(*lhs, rhs->first), rhs->second, *action}
|
|
||||||
;}
|
|
||||||
|
|
||||||
static inline rhs_t * parse_reduce_11(__attribute__((unused)) solar::grammar_t * grammar) {return new rhs_t();}
|
static inline rhs_t * parse_reduce_11(__attribute__((unused)) solar::grammar_t * grammar) {return new rhs_t();}
|
||||||
|
|
||||||
|
|
|
@ -107,9 +107,8 @@ directive |= rule(rule) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
rule |= SYMBOL_LC(lhs) "|=" rhs(rhs) action(action) [
|
rule |= SYMBOL_LC(lhs) "|=" rhs(rhs) action(action)
|
||||||
new solar::rule_t {solar::item_t(*lhs, rhs->first), rhs->second, *action}
|
[new solar::rule_t {solar::item_t(*lhs, rhs->first), rhs->second, *action}]
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
rhs |= [new rhs_t()]
|
rhs |= [new rhs_t()]
|
||||||
|
|
Reference in a new issue