From: Ben Pfaff Date: Mon, 20 Sep 2010 00:37:30 +0000 (-0700) Subject: lexer: New type enum token_type. X-Git-Tag: v0.7.7~125 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=inline;h=691c25e36fd1ee722dd35419d6110e3876b99f9c;hp=691c25e36fd1ee722dd35419d6110e3876b99f9c;p=pspp-builds.git lexer: New type enum token_type. It seems useful to have a type that indicates that a value is a token. Furthermore, being able to enumerate all of the possible tokens in a straightforward way seems worthwhile. It also makes it possible for GCC to check "switch" statements on token types and to build arrays indexed by token. ---