Program to identify valid indian phone number.

%{
#include<stdio.h>
%}
%%
([789][0-9]+{9}) {printf("it is valid phone number");}
%%
main()
{
yylex();
}

Comments

Popular posts from this blog

A program to find FIRST of non-terminals of the given grammar

Implementation of Symbol Table

Desk Calculator