deelang/lexdemo.c
2021-11-25 11:09:29 -06:00

12 lines
191 B
C

#include "lexer.h"
#include "parser.h"
void main() {
int t;
while ((t = yylex()) != 0) {
printf("yylex=0x%x\n", t);
printf("yylval=%s\n", yylval.sym);
}
printf("Byebye!");
}