|
|
@ -22,14 +22,14 @@ float [0-9]*\.[0-9]+
|
|
|
|
"node" return NODE;
|
|
|
|
"node" return NODE;
|
|
|
|
"->" return DIR_EDGE;
|
|
|
|
"->" return DIR_EDGE;
|
|
|
|
"--" return UNDIR_EDGE;
|
|
|
|
"--" return UNDIR_EDGE;
|
|
|
|
{name} { yylval.pText = new QString(yytext); return NAME; }
|
|
|
|
{name} { yylval.pText = new TQString(yytext); return NAME; }
|
|
|
|
{string} {
|
|
|
|
{string} {
|
|
|
|
QString str = &yytext[1];
|
|
|
|
TQString str = &yytext[1];
|
|
|
|
yylval.pText = new QString(str.left(yyleng - 2));
|
|
|
|
yylval.pText = new TQString(str.left(yyleng - 2));
|
|
|
|
return STRING;
|
|
|
|
return STRING;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{number} { yylval.pText = new QString(yytext); return NUMBER; }
|
|
|
|
{number} { yylval.pText = new TQString(yytext); return NUMBER; }
|
|
|
|
{float} { yylval.pText = new QString(yytext); return NUMBER; }
|
|
|
|
{float} { yylval.pText = new TQString(yytext); return NUMBER; }
|
|
|
|
{space} ;
|
|
|
|
{space} ;
|
|
|
|
. return yytext[0];
|
|
|
|
. return yytext[0];
|
|
|
|
|
|
|
|
|
|
|
|