diff options
| author | gingerBill <ginger.bill.22@gmail.com> | 2016-08-05 21:07:25 +0100 |
|---|---|---|
| committer | gingerBill <ginger.bill.22@gmail.com> | 2016-08-05 21:07:25 +0100 |
| commit | ba238c569a54ac52aa318aa1238be790f941f724 (patch) | |
| tree | 5dea8e913a6f5b21299fb5f5b6b5ed7f5aeed5d0 /src/parser.cpp | |
| parent | 4a303b5c3ef38bd99c36fa990c922917c0134d52 (diff) | |
Strings galore!
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index afd8bb3df..ae2162059 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -62,6 +62,7 @@ struct Parser { gbArray(AstFile) files; gbArray(String) imports; isize import_index; + isize total_token_count; }; enum DeclKind { @@ -2137,8 +2138,10 @@ ParseFileError parse_files(Parser *p, char *init_filename) { } parse_file(p, &file); gb_array_append(p->files, file); + p->total_token_count += gb_array_count(file.tokens); } + return ParseFile_None; } |