#include "cc.h" static void errorat(Pos x, byte *fmt, ...) { va_list args; va_start(args, fmt); printf("error %d:", x.line); vprintf(fmt, args); va_end(args); } static byte getbyte(struct Lexer *lex) { return bufio·getbyte(&lex->buf); } static error ungetbyte(struct Lexer *lex, byte b) { return bufio·ungetbyte(&lex->buf, b); } void lex(struct Lexer *lex) { int b; b = getbyte(lex); TOP: switch (b) { } }