#include "avltree.h"
#include "parsedata.h"
-extern char *lelNames[];
-
-struct LangEl;
-
struct Parser
{
- %%{
+%%{
parser Parser;
# These must be declared first and in this order. Ragel currently cannot
# 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 §ionLoc )
: sectionName(sectionName)
JoinOrLm *joinOrLm, bool isInstance );
/* Report an error encountered by the parser. */
- ostream &parser_error( int tokId, Token &token );
+ ostream &parse_error( int tokId, Token &token );
ParseData *pd;
NameRefList nameRefList;
};
+%% write token_defs;
+
#endif