lexer: New type enum token_type.
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 20 Sep 2010 00:37:30 +0000 (17:37 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 19 Nov 2010 17:37:03 +0000 (09:37 -0800)
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.


No differences found