X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Flexer%2Ftoken.h;h=8ec28f3714ba54046f10c910e6276b2088df6eef;hb=2031b99a3f1970a0b9a840652f0aff80ec34b433;hp=dca1452c6a32aed957ce98e8e9c129fc254fff32;hpb=b70dcc901c6b6b28a310ffc58aca13daa2a58d67;p=pspp diff --git a/src/language/lexer/token.h b/src/language/lexer/token.h index dca1452c6a..8ec28f3714 100644 --- a/src/language/lexer/token.h +++ b/src/language/lexer/token.h @@ -23,13 +23,10 @@ #include "libpspp/str.h" #include "data/identifier.h" -/* A PSPP syntax token. - - The 'type' member is used by the scanner (see scan.h) for SCAN_* values as - well, which is why it is not declared as type "enum token_type". */ +/* A PSPP syntax token. */ struct token { - int type; /* Usually a "enum token_type" value. */ + enum token_type type; double number; struct substring string; };