Saturday, September 15, 2012

Re: The simplest High Level Language

http://aquamentus.com/flex_bison.html

This is a good tutorial on flex and bison. I had problems making flex
work. It misses one file, requiring yywrap() function.

At the moment I had to write my own yylex() fuction as described by
the Bison examples.
I managed to get flex for gnuwin32 to work by adding this function to
the flex source:

int yywrap (void)
{
return 1;
}
It worked.
But on trying to extend it to file input, I can't seem to set the yyin
global variable.

No comments:

Post a Comment