Switched to the latest kelbt syntax. Like Ragel, this syntax is based on write
[external/ragel.git] / ragel / rlparse.kh
index fe983fa..f1649d6 100644 (file)
@@ -26,7 +26,7 @@
 #include "avltree.h"
 #include "parsedata.h"
 
-extern char *lelNames[];
+extern char *Parser_lelNames[];
 
 struct LangEl;
 
@@ -93,10 +93,13 @@ struct Parser
        # semi is sent as a token in the code block rather than as a generic
        # symbol.
        token TK_Semi;
-
-       interface;
        }%%
 
+       %%{ write instance_data; }%%
+
+       void init();
+       int parseLangEl( int type, const Token *token );
+
        Parser( char *fileName, char *sectionName, InputLoc &sectionLoc )
                : sectionName(sectionName)
        {
@@ -119,4 +122,6 @@ struct Parser
        NameRefList nameRefList;
 };
 
+%%{ write token_defs; }%%
+
 #endif