projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lexer: Change the pipeline to allow more flexible use of macros.
[pspp]
/
src
/
language
/
lexer
/
token.h
diff --git
a/src/language/lexer/token.h
b/src/language/lexer/token.h
index dca1452c6a32aed957ce98e8e9c129fc254fff32..8ec28f3714ba54046f10c910e6276b2088df6eef 100644
(file)
--- a/
src/language/lexer/token.h
+++ b/
src/language/lexer/token.h
@@
-23,13
+23,10
@@
#include "libpspp/str.h"
#include "data/identifier.h"
#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
{
struct token
{
- int type; /* Usually a "enum token_type" value. */
+ enum token_type type;
double number;
struct substring string;
};
double number;
struct substring string;
};