#include enum token_type { PAREN_OPEN, PAREN_CLOSE, NEWLINE, FUN, IDENT, LITERAL_INT }; int ch; void next_ch() { ch = getchar(); } void add_token() { } void tokenise() { do { next_ch(); printf(">>%c\n", ch); } while(ch != EOF); } int main() { tokenise(); return 0; }