1 class mgl_scomplexer
: public yyFlexLexer
{
3 void embedded_yylex(int& result
, YYSTYPE
*lvalp
, mgl_scompcontext
*local_context
);
6 mgl_scompcontext
*context
;
7 YYSTYPE semantic_value
;
10 class ParserExecutionContext
{
11 friend mgl_scompcontext
*mgl_getcontext(void *parm
);
14 ParserExecutionContext(mgl_scomplexer
*ptlexer
, FILE *ptinbuf
) {
15 currentLexer
= ptlexer
;
16 currentStreambuf
= new mgl_ifdstreambuf(fileno(ptinbuf
), 512);
17 mgl_infile
= new istream(currentStreambuf
);
19 ~ParserExecutionContext(void) {
21 delete currentStreambuf
;
23 mgl_scomplexer
*currentLexer
;
24 std::istream
*mgl_infile
;
26 mgl_scompcontext context
;
27 mgl_ifdstreambuf
*currentStreambuf
;