token TK_Semi;
}%%
- %%{ write instance_data; }%%
+ %% write instance_data;
void init();
int parseLangEl( int type, const Token *token );
NameRefList nameRefList;
};
-%%{ write token_defs; }%%
+%% write token_defs;
#endif
void Parser::init()
{
- %%{ write init; }%%
+ %% write init;
}
int Parser::parseLangEl( int type, const Token *token )
{
- %%{ write exec; }%%
+ %% write exec;
return errCount == 0 ? 0 : -1;
}
"|*" => { token( TK_BarStar ); };
'}%%' => {
- /* In order to generate anything we must be in the top level file
- * and the current spec must be active and there must not have been
- * any parse errors. */
updateCol();
endSection();
fgoto main;
NL => {
updateCol();
if ( singleLineSpec ) {
- /* In order to generate anything we must be in the top level file
- * and the current spec must be active and there must not have been
- * any parse errors. */
endSection();
fgoto main;
}
TAG_option;
}%%
- %%{ write instance_data; }%%
+ %% write instance_data;
void init();
int parseLangEl( int type, const Token *token );
CodeGenMap codeGenMap;
};
-%%{ write token_defs; }%%
+%% write token_defs;
#endif /* _XMLPARSE_H */
void Parser::init()
{
- %%{ write init; }%%
+ %% write init;
}
int Parser::parseLangEl( int type, const Token *token )
{
- %%{ write exec; }%%
+ %% write exec;
return errCount == 0 ? 0 : -1;
}