xo-parser: drop expractiontype::emit
This commit is contained in:
parent
03f11ab70a
commit
e013082442
2 changed files with 3 additions and 22 deletions
|
|
@ -114,7 +114,7 @@ namespace xo {
|
|||
invalid = -1,
|
||||
|
||||
keep,
|
||||
emit,
|
||||
//emit,
|
||||
//pop,
|
||||
|
||||
n_expractiontype
|
||||
|
|
@ -140,9 +140,8 @@ namespace xo {
|
|||
{}
|
||||
|
||||
static expraction keep();
|
||||
static expraction emit(const exprir & ir);
|
||||
#ifdef OBSOLETE
|
||||
static expraction pop();
|
||||
static expraction emit(const exprir & ir);
|
||||
#endif
|
||||
|
||||
expractiontype action_type() const { return action_type_; }
|
||||
|
|
|
|||
|
|
@ -87,10 +87,6 @@ namespace xo {
|
|||
return "?invalid";
|
||||
case expractiontype::keep:
|
||||
return "keep";
|
||||
case expractiontype::emit:
|
||||
return "emit";
|
||||
//case expractiontype::pop:
|
||||
//return "pop";
|
||||
case expractiontype::n_expractiontype:
|
||||
break;
|
||||
}
|
||||
|
|
@ -104,26 +100,12 @@ namespace xo {
|
|||
exprir());
|
||||
}
|
||||
|
||||
#ifdef OBSOLETE
|
||||
expraction
|
||||
expraction::emit(const exprir & ir) {
|
||||
return expraction(expractiontype::emit,
|
||||
ir);
|
||||
}
|
||||
|
||||
#ifdef OBSOLETE
|
||||
expraction
|
||||
expraction::pop(const exprir & ir) {
|
||||
return expraction(expractiontype::pop,
|
||||
ir);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef OBSOLETE
|
||||
expraction
|
||||
expraction::pop() {
|
||||
return expraction(expractiontype::pop,
|
||||
exprir());
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue