Initial commit

This commit is contained in:
Keith Winstein
2010-12-28 18:05:50 -05:00
commit 52f527891c
7 changed files with 160 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
#ifndef PARSERTRANSITION_HPP
#define PARSERTRANSITION_HPP
#include <stdlib.h>
#include "parseraction.hpp"
class State;
namespace Parser {
class Transition
{
public:
Action action;
State *next_state;
Transition();
Transition( const Transition & );
bool operator=( const Transition & );
virtual ~Transition();
};
class IgnoreTransition : public Transition
{
public:
IgnoreTransition()
{
action = Ignore();
next_state = NULL;
}
};
}
#endif