%{ int a=0; %} digit[0-9] %% {digit} a++; %% main() { printf("enter string"); yylex(); printf("\n no of digits %d",a); }
lex part 5
Providing JSP, Servlet, JAVA, JavaScript, HTML, CSS, C#, C++, Python Tutorials
%{ int a=0; %} digit[0-9] %% {digit} a++; %% main() { printf("enter string"); yylex(); printf("\n no of digits %d",a); }
0 Comments:
Post a Comment