Action names

This commit is contained in:
Keith Winstein
2011-01-10 00:24:25 -05:00
parent d8ac8c15c2
commit 2ce73ca1d5
5 changed files with 70 additions and 20 deletions
+8 -2
View File
@@ -17,10 +17,16 @@ namespace Parser {
Transition( const Transition &x )
: action( x.action ),
next_state( x.next_state ) {}
bool operator=( const Transition & );
Transition & operator=( const Transition &t )
{
action = t.action;
next_state = t.next_state;
return *this;
}
virtual ~Transition() {}
Transition( Action s_action, State *s_next_state )
Transition( Action s_action=Ignore(), State *s_next_state=NULL )
: action( s_action ), next_state( s_next_state )
{}
};