-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi there i have a flex rule inside my lexer definition :
operators "[]"|"[]="|"[]<"|".."|"."|".="|"+"|"+="|"-"|"-="|"/"|"/="|"*"|"*="|"%"|"%="|"++"|"--"|"^"|"^="|"~"|"&"|"&="|"|"|"|="|"<<"|"<<="|">>"|"!"|"<"|">"|">="|"<="|"=="|"!="|"&&"|"||"|"~="
Is…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I can't figure this one out. I can download a win32 binary of flex 2.5.4a from gnuwin32, but I'd like to build the latest version (2.5.35) using Visual Studio 2005. I suppose I could build in in cygwin, but where is the fun in that?
http://flex.sourceforge.net/
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I am trying to do a little exercice in FLEX and BISON.
Here is the code I wrote :
calc_pol.y
%{
#define YYSTYPE double
#include "calc_pol.tab.h"
#include <math.h>
#include <stdlib.h>
%}
%start line
%token NOMBRE
%token FIN
%%
line: exp '\n' { printf("\t%.2lf\n", $1); };
exp: exp…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi there .. i'm using GNU Bison 2.4.2 to write a grammar for a new language i'm working on and i have a question.
When i specify a rule, let's say :
statement : T_CLASS T_IDENT '{' T_CLASS_MEMBERS '}' {
// create a node for the statement ...
}
If i have a variation on the rule, for…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to install flex on my Windows computer. I have MSYS installed. I untar flex, ./configure it, but when I try to make it, I get this error:
In file included from ccl.c:34:
flexdef.h:94:19: error: regex.h: No such file or directory
In file included from ccl.c:34:
flexdef.h:1195: error: expected…
>>> More