[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: accessing yyval outside lex and yacc
From: |
Akim Demaille |
Subject: |
Re: accessing yyval outside lex and yacc |
Date: |
20 Jul 2001 14:18:38 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Academic Rigor) |
| A good approximation simply consists in a wrapper around yyparse, in
| the preamble, or the postamble of your .y:
|
| Constraint *
| constraint_parse ()
constraint_parse (const char *filename)
| {
| Constraint *res = 0
| // Set up yyin
| if (yyparse ())
| return root;
| else
| return NULL;
| }
|
| and keep root static.
_______________________________________________
Help-bison mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/help-bison
- accessing yyval outside lex and yacc, Manju James, 2001/07/20
- Re: accessing yyval outside lex and yacc, Akim Demaille, 2001/07/20
- Re: accessing yyval outside lex and yacc, Manju James, 2001/07/20
- Re: accessing yyval outside lex and yacc, Hans Aberg, 2001/07/20
- Re: accessing yyval outside lex and yacc, Akim Demaille, 2001/07/20
- Re: accessing yyval outside lex and yacc,
Akim Demaille <=
- Re: accessing yyval outside lex and yacc, Manju James, 2001/07/20
- Re: accessing yyval outside lex and yacc, Akim Demaille, 2001/07/20
- Re: accessing yyval outside lex and yacc, Manju James, 2001/07/20
- Re: accessing yyval outside lex and yacc, Hans Aberg, 2001/07/20
- Re: accessing yyval outside lex and yacc, Axel Kittenberger, 2001/07/21
- Re: accessing yyval outside lex and yacc, Hans Aberg, 2001/07/22