List Info

Thread: Array




Array
user name
1969-12-31 18:00:00
Hi,

Recently,I have used bison to do somthing on Lexical
Analyzer & Syntax 
Analyzer.

I checked the bison manual and found there only examples of
yyin is ostream 
type and FILE * type, does the yyin support the variable
type ? I 
recomplied the example of rpcalc in bison manual ,if I
define a const 
variable with char * type in main(void) and want to make the
yyparse() 
parse it correctly, what & how should I do ?

I am looking forward to your reply and appreciated for it!

Best Regards,
Wang Yige

____________________________________________________________
_____
Ãâ·ÑÏÂÔØ MSN Explorer:   http://explorer.msn.com
/lccn/  



_______________________________________________
help-bisongnu.org http
://lists.gnu.org/mailman/listinfo/help-bison
Array
user name
1969-12-31 18:00:00
On 29 Jun 2006, at 10:19, Wang Yige wrote:

> I checked the bison manual and found there only
examples of yyin is  
> ostream type and FILE * type, does the yyin support the
variable  
> type ? I recomplied the example of rpcalc in bison
manual ,if I  
> define a const variable with char * type in main(void)
and want to  
> make the yyparse() parse it correctly, what & how
should I do ?

The Bison generated parsers parses a stream of tokens. It is
the  
lexers that feed the parsers that make use of character
streams. If  
you use Flex to generate your lexer, you might try: Flex
Help <help- 
flexgnu.org>.

   Hans Aberg




_______________________________________________
help-bisongnu.org http
://lists.gnu.org/mailman/listinfo/help-bison
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )