Commit Graph

35 Commits

Author SHA1 Message Date
Jacob G-W 641ecc260f std, src, doc, test: remove unused variables 2021-06-21 17:03:03 -07:00
Veikka Tuominen fd77f2cfed std: update usage of std.testing 2021-05-08 15:15:30 +03:00
Veikka Tuominen 904f774563 translate-c: fix c tokenizer giving invalid tokens 2021-03-03 11:33:14 -08:00
Tadeo Kondrak 0b5f3c2ef9 Replace @TagType uses, mostly with std.meta.Tag 2021-01-30 22:26:44 +02:00
Evan Haas d95724454c Allow dollar sign $ in identifiers in translate-c
In strictly conforming C, identifiers cannot container dollar signs.
However GCC and Clang allow them by default, so translate-c should
handle them. See http://gcc.gnu.org/onlinedocs/cpp/Tokenization.html
I encountered this in the wild in windows.h

Fixes #7585
2021-01-04 14:14:04 -08:00
LemonBoy dd973fb365 std: Use {s} instead of {} when printing strings 2021-01-02 17:12:57 -07:00
Frank Denis 6c2e0c2046 Year++ 2020-12-31 15:45:24 -08:00
Andrew Kelley 4a69b11e74 add license header to all std lib files
add SPDX license identifier
copyright ownership is zig contributors
2020-08-20 16:07:04 -04:00
Vexu e7007fa7bd translate-c: use ArrayList for macro tokens 2020-07-27 15:38:56 +03:00
Andrew Kelley da549a72e1 zig fmt 2020-06-20 18:39:15 -04:00
Ryan Liptak 62cfc68d2f Use std.ComptimeStringMap in the C tokenizer 2020-05-26 23:10:08 -07:00
Vexu b15958c557 fix c tokenizer bug 2020-02-14 18:57:57 -05:00
Vexu fa377dbd15 fix c tokenizer bug 2020-02-13 12:21:28 -05:00
Vexu ae5ba369e1 translate-c float fixes 2020-02-10 11:02:29 -05:00
Andrew Kelley 40b1fecace Merge pull request #4363 from Vexu/trans-std-c
Use std.c.tokenizer in translate-c
2020-02-05 14:29:39 -05:00
Vexu 1f49460dcb fix regressions in comments and string prefixes 2020-02-05 08:35:30 +02:00
Vexu 35c40f0a70 fix regressions 2020-02-02 10:49:51 +02:00
LemonBoy 3640c682a2 Run zig fmt 2020-02-01 11:32:53 +01:00
Vexu ad327fed05 std-c redo scoping, do string concatanation in parser 2020-01-19 20:44:55 +02:00
Vexu 28daddae81 std-c todos and small fixes 2020-01-14 16:18:32 +02:00
Vexu 8b713ce889 std-c parser add options 2020-01-07 22:43:44 +02:00
Vexu df12c1328e std-c parser typing improvements 2020-01-07 16:05:13 +02:00
Vexu 795a503999 std-c tokenizer always add newline token 2020-01-05 20:25:51 +02:00
Vexu 46f292982d std-c parser DeclSpec 2020-01-05 20:25:51 +02:00
Vexu dccf1247b2 std-c ifstmt compoundstmt and errors 2020-01-05 20:25:51 +02:00
Vexu e1b01d32f0 std-c ast base 2020-01-05 20:25:50 +02:00
Vexu 2183c4bb44 std-c tokenizer string concatenation 2020-01-05 20:25:50 +02:00
Vexu a5d1fb1e49 std-c tokenizer line continuation, tests and fixes 2020-01-05 20:25:50 +02:00
Vexu c221593d7d std-c tokenizer better special case handling 2020-01-05 20:25:50 +02:00
Vexu 472ca947c9 std-c tokenizer add tests 2020-01-05 20:25:50 +02:00
Vexu d75697a6a3 std-c tokenizer keywords 2020-01-05 20:25:50 +02:00
Vexu 26bf410b06 std-c finish tokenizer 2020-01-05 20:25:49 +02:00
Vexu f14a5287e9 std-c tokenizer strings, floats and comments 2020-01-05 20:25:49 +02:00
Vexu 05acc0b0c1 std-c tokenizer more stuff 2020-01-05 20:25:49 +02:00
Vexu 04b7cec42e std-c tokenizer base 2020-01-05 20:25:49 +02:00