rm -f $(NAME).o $(NAME) $(NAME).c
1test: $(NAME)
- @echo "execute ./$(NAME)"
- @./$(NAME)
+ @echo "execute cat test/1test | ./$(NAME)"
+ @cat test/1test | ./$(NAME)
+ @echo "execute cat test/2test | ./$(NAME)"
+ @cat test/2test | ./$(NAME)
2test:
/usr/ftp/pub/ublu/test/$(NAME)/test 2>&1
<COMMENT><<EOF>> { (void) fprintf(stderr, "kommentar nicht geschlossen\n"); exit(1); }
+<COMMENT>{WHITESPACE} /* ignorieren */
+
<COMMENT>. /* alles im kommentar wird ignoriert */
{KEYWORD} printf("%s\n", yytext);