[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pure bison and YYPARSE_PARAM
From: |
wim delvaux |
Subject: |
pure bison and YYPARSE_PARAM |
Date: |
Sat, 24 Jan 2004 00:20:31 +0100 |
User-agent: |
KMail/1.5.4 |
Hi all,
Using flex and bison in a pure context.
Flex generates yylex/2 lval as first arg and lloc as second
Specifying pure-parser in *.y file yields proper yylex calling.
However the flex example calles bison as
yyparse( Lexer )
Where lexer is the datastructure allocated by yylex_init containing the state
of the lex parser.
However yyparse generally has NO arguments EXCEPT if YYPARSE_PARAM e.a. is
used.
However the info for bison states that his define is depreciated ...
What is then the alternative to pass the lexer to the bison parser ?
Thanx
W
- pure bison and YYPARSE_PARAM,
wim delvaux <=