help-bison
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]