2 Topics

Member Avatar for
Member Avatar for Xheis

Hi, I have this code in C for Flex/Lex, the only problem is that as I try to compile it it shows some errors and I dont know how to fix them. letter [a-zA-Z] digit[0-9] %% {digit}+("E"("+"|"-")?{digit}+)? printf("\n%s\tis real number",yytext); {digit}+"."{digit}+("E"("+"|"-")?{digit}+)? printf("\n%s\t is floating pt no ",yytext); "if"|"else"|"int"|"char"|"scanf"|"printf"|"switch"|"return"|"struct"|"do"|"while"|"void"|"for"|"float" printf("\n%s\t is …

Member Avatar for Tumlee
0
874
Member Avatar for nandosss

Okay guys. I want to create discussion. Java people we all know of the Streamtokenizer class or as I call it "lexer" class. My questions is how helpful can this class be when we try to create a lexical analyzer? How can we manipulate it in order to tokenize our …

0
104

The End.