Artifact bec7d6cd3b7f03c9db81cd1e14d5f462c321633c757f20b1498ae293acb08a7f:
- File bootstrap/main.c — part of check-in [9c7b5ad187] at 2017-07-02 21:36:25 on branch trunk — started tokeniser (user: athaudia size: 296)
#include <stdio.h> 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; }