Andrew Kelley
24c432608f
stage2: improve compile errors from tokenizer
...
In order to not regress the quality of compile errors, some improvements
had to be made.
* std.zig.parseCharLiteral is improved to return more detailed parse
failure information.
* tokenizer is improved to handle null bytes in the middle of strings,
character literals, and line comments.
* validating how many unicode escape digits in string literals is moved
to std.zig.parseStringLiteral rather than handled in the tokenizer.
* when a tokenizer error occurs, if the reported token is the 'invalid'
tag, an error note is added to point to the invalid byte location.
Further improvements would be:
- Mention the expected set of allowed bytes at this location.
- Display the invalid byte (if printable, print it, otherwise
escape-print it).
2021-07-02 13:27:35 -07:00
..
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-06-23 12:54:20 +03:00
2021-06-21 17:03:03 -07:00
2021-06-29 14:25:04 -07:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-05-13 11:11:28 +02:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-05-08 15:15:30 +03:00
2021-06-30 09:28:08 +03:00
2021-06-21 17:03:03 -07:00
2021-06-25 19:13:43 +02:00
2021-06-17 16:37:38 -04:00
2020-12-31 15:45:24 -08:00
2021-06-21 17:03:03 -07:00
2020-12-31 15:45:24 -08:00
2021-06-21 17:03:03 -07:00
2021-05-08 14:45:21 -07:00
2021-06-21 17:03:03 -07:00
2021-07-02 13:27:35 -07:00
2021-06-21 17:03:03 -07:00
2021-05-08 14:45:21 -07:00
2021-06-08 14:27:44 -04:00
2021-06-01 18:35:13 +09:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-06-03 17:02:16 -05:00
2021-06-03 17:02:16 -05:00
2021-06-25 19:13:43 +02:00
2021-06-30 20:02:48 -04:00
2021-06-16 14:46:25 -04:00
2021-06-18 08:26:22 -06:00
2021-06-18 16:19:20 -07:00
2021-01-22 15:46:58 +01:00
2021-06-21 17:03:03 -07:00
2021-05-08 15:15:30 +03:00
2021-05-08 14:45:21 -07:00
2021-06-21 17:09:22 -07:00
2020-12-31 15:45:24 -08:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-06-25 08:38:47 +02:00
2021-06-21 17:03:03 -07:00
2020-12-31 15:45:24 -08:00
2021-05-08 15:15:30 +03:00
2021-06-27 12:54:31 +03:00
2021-06-29 14:25:04 -07:00
2021-06-21 17:03:03 -07:00
2020-12-31 15:45:24 -08:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-07-01 22:35:19 +03:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-06-22 16:38:18 +03:00
2021-06-25 08:38:47 +02:00
2021-06-10 20:13:43 -07:00
2021-06-25 08:38:47 +02:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-05-08 14:45:21 -07:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-04-29 15:54:04 -07:00
2021-06-30 18:39:04 -07:00
2021-04-25 21:15:02 +09:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-05-08 15:15:30 +03:00
2021-07-02 13:26:50 -07:00
2021-05-17 16:08:09 -07:00
2021-05-08 15:15:30 +03:00
2021-06-01 18:22:57 +09:00
2021-07-02 13:27:35 -07:00