/* LEX program to identify the capitalized words from the given string*/
%{
#include<stdio.h>
%}
%%
[A-Z] {printf("%s\n", yytext);}
\t ;
\n ;
. ;
%%
int main(){
printf("Enter the string:\n");
yylex();
}
int yywrap(void){
return 1;
}
LyogTEVYIHByb2dyYW0gdG8gaWRlbnRpZnkgdGhlIGNhcGl0YWxpemVkIHdvcmRzIGZyb20gdGhlIGdpdmVuIHN0cmluZyovCgolewojaW5jbHVkZTxzdGRpby5oPgolfQoKJSUKW0EtWl0ge3ByaW50ZigiJXNcbiIsIHl5dGV4dCk7fQpcdCA7ClxuIDsKLiA7CiUlCgppbnQgbWFpbigpewpwcmludGYoIkVudGVyIHRoZSBzdHJpbmc6XG4iKTsKeXlsZXgoKTsKfQoKaW50IHl5d3JhcCh2b2lkKXsKcmV0dXJuIDE7Cn0K