* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#ifndef _FSMCODEGEN_H
-#define _FSMCODEGEN_H
+#ifndef _CSCODEGEN_H
+#define _CSCODEGEN_H
#include <iostream>
#include <string>
struct LongestMatch;
struct LongestMatchPart;
-inline string itoa( int i )
-{
- char buf[16];
- sprintf( buf, "%i", i );
- return buf;
-}
+string itoa( int i );
/*
* class CSharpFsmCodeGen
virtual void finishRagelDef();
virtual void writeInit();
+ virtual void writeStart();
+ virtual void writeFirstFinal();
+ virtual void writeError();
protected:
string FSM_NAME();
string P();
string PE();
- string EOFV();
+ string vEOF();
string ACCESS();
- string CS();
+ string vCS();
string STACK();
string TOP();
string TOKSTART();
#define MAX(a, b) (a > b ? a : b)
-#endif /* _FSMCODEGEN_H */
+#endif