[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
simple problem
From: |
address@hidden |
Subject: |
simple problem |
Date: |
Sat, 23 Feb 2019 23:19:18 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 |
Hi again, i have the following code:
%{
#include <stdio.h>
#include <stdlib.h>
%}
%%
^[ \t]+[a-zA-Z]+\( { printf("%s is a function definition\n", yytext); }
.|\n { /* do nothing */ }
%%
int main(int argc, char **argv)
{
yylex();
return(0);
}
but when i try in > \t234welcome( i also get the output %s is a
function string. how to avoid this behaviour ?
best regards!
- simple problem,
address@hidden <=