/* * Copyright (c) 2013, 2014, 2015, 2016 The University of Utah * All rights reserved. * * This file is distributed under the University of Illinois Open Source * License. See the file COPYING for details. */ #include #include #include /* * Stuff defined for us by the lex/flex-generated code. */ extern FILE *yyin; extern int yylex(void); extern char *yytext; /* * Stuff that we define within the lex/flex-generated code. */ extern int count; enum tok_kind { TOK_KEYWORD = 999, TOK_OP, TOK_IDENT, TOK_OTHER, TOK_NUMBER, TOK_WS, TOK_NEWLINE, TOK_STRING, TOK_UNKNOWN, }; void process_token(enum tok_kind); #define OK 51 #define STOP 71