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)
commit691c25e36fd1ee722dd35419d6110e3876b99f9c
tree79a7c5f69899efea9558c042833ec243d7f2d260
parent5a6b751888278c8c849ab0f4adf99f1be610e610
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.
68 files changed:
src/data/identifier.c
src/data/identifier.h
src/language/command.c
src/language/control/loop.c
src/language/control/repeat.c
src/language/data-io/combine-files.c
src/language/data-io/data-list.c
src/language/data-io/data-reader.c
src/language/data-io/file-handle.q
src/language/data-io/get-data.c
src/language/data-io/get.c
src/language/data-io/inpt-pgm.c
src/language/data-io/placement-parser.c
src/language/data-io/print-space.c
src/language/data-io/print.c
src/language/data-io/save-translate.c
src/language/data-io/save.c
src/language/data-io/trim.c
src/language/dictionary/apply-dictionary.c
src/language/dictionary/attributes.c
src/language/dictionary/formats.c
src/language/dictionary/missing-values.c
src/language/dictionary/modify-variables.c
src/language/dictionary/mrsets.c
src/language/dictionary/numeric.c
src/language/dictionary/rename-variables.c
src/language/dictionary/sys-file-info.c
src/language/dictionary/value-labels.c
src/language/dictionary/variable-display.c
src/language/dictionary/variable-label.c
src/language/dictionary/vector.c
src/language/expressions/evaluate.c
src/language/expressions/parse.c
src/language/lexer/lexer.c
src/language/lexer/lexer.h
src/language/lexer/q2c.c
src/language/lexer/variable-parser.c
src/language/stats/aggregate.c
src/language/stats/autorecode.c
src/language/stats/correlations.c
src/language/stats/crosstabs.q
src/language/stats/descriptives.c
src/language/stats/examine.q
src/language/stats/factor.c
src/language/stats/flip.c
src/language/stats/frequencies.q
src/language/stats/glm.c
src/language/stats/npar.c
src/language/stats/oneway.c
src/language/stats/rank.q
src/language/stats/regression.q
src/language/stats/reliability.c
src/language/stats/roc.c
src/language/stats/sort-cases.c
src/language/stats/sort-criteria.c
src/language/stats/t-test.q
src/language/tests/float-format.c
src/language/tests/moments-test.c
src/language/utilities/host.c
src/language/utilities/include.c
src/language/utilities/permissions.c
src/language/utilities/set.q
src/language/utilities/title.c
src/language/xforms/compute.c
src/language/xforms/count.c
src/language/xforms/recode.c
src/language/xforms/select-if.c
tests/language/expressions/evaluate.at