|
|
| Daniel Lipski 2006-04-12, 10:02 pm |
| Hi
Im writing compiler with Flex as scanner and Bison as parser. Naturally
i want user friendly error descriptions with token locations so i have
to track locations in flex and make them available in Bison. Here comes
problems beacouse version of flex im using (2.5.4a from
http://gnuwin32.sourceforge.net/packages/flex.htm) doesnt have build in
suport for locations.
I read that there are some other versions of flex (on sourceforge ?)
supporting location (by some %option bison-bridge or sth) but i cant
find them. Offcourse i can calcualte location by myself but if i dont
have to... . Can you help me ? I'm looking for flex working on windows
platform.
Thanx
Daniel Lipski
| |
| Thomas Dickey 2006-04-14, 7:07 pm |
| Daniel Lipski <s2565@pjwstk.edu.pl> wrote:
> I read that there are some other versions of flex (on sourceforge ?)
> supporting location (by some %option bison-bridge or sth) but i cant
> find them. Offcourse i can calcualte location by myself but if i dont
> have to... . Can you help me ? I'm looking for flex working on windows
> platform.
The version on sourceforge hasn't been ported anywhere. flex 2.5.4a is
trivial to build on windows; you're better off learning how to do that.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
| |
| Ranjit Mathew 2006-04-17, 7:05 pm |
| Daniel Lipski wrote:
>
> I read that there are some other versions of flex (on sourceforge ?)
Yes. http://flex.sourceforge.net/ contains the latest releases.
HTH,
Ranjit.
- --
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://rmathew.com/
|
|
|
|