diff options
author | 2003-03-13 18:10:50 -0700 | |
---|---|---|
committer | 2005-04-07 20:59:15 -0700 | |
commit | a9400ca17ec93398a39a69079f10f429d37de18b (patch) | |
tree | 2c721188234b441b53f7f15b8ad01168d1c14249 /test-lexing.c | |
parent | Mark local parsing functions 'static'. (diff) | |
download | sparse-a9400ca17ec93398a39a69079f10f429d37de18b.tar.gz sparse-a9400ca17ec93398a39a69079f10f429d37de18b.tar.bz2 sparse-a9400ca17ec93398a39a69079f10f429d37de18b.zip |
Start handling minimal semantic information, needed for types.
This adds a layer of symbol information on top of the raw tokens.
Diffstat (limited to 'test-lexing.c')
-rw-r--r-- | test-lexing.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test-lexing.c b/test-lexing.c index 9db756a..007f404 100644 --- a/test-lexing.c +++ b/test-lexing.c @@ -5,6 +5,7 @@ #include <ctype.h> #include <unistd.h> #include <fcntl.h> + #include "token.h" void callback(struct token *token) @@ -20,6 +21,7 @@ int main(int argc, char **argv) if (fd < 0) die("No such file: %s", argv[1]); + token = tokenize(argv[1], fd); line = token->line; while (token) { |