zig-spec icon indicating copy to clipboard operation
zig-spec copied to clipboard

Results 9 zig-spec issues
Sort by recently updated
recently updated
newest added

NL = New Line (0x0a) CR = Carriage Return (0x0d) TAB = Tab (0x09) ## Inside Line Comments and Documentation Comments * Any TAB is rejected by the grammar since...

The equivalent of this test in C is UB according to ubsan: ```zig const bytes align(4) = [_]u8{ 1, 2, 3, 4 }; const S = extern struct { a:...

I cannot get validation on a 20.04 cloud host, a [gitpod cloud host](https://gitpod.io/#https://github.com/markfirmware/zig-spec/tree/gh-actions-validation) nor in [gh actions](https://github.com/markfirmware/zig-spec/actions). All of the tests have 127 vs 0 cd grammar ./validate.sh

Explained [here](https://github.com/ziglang/zig/issues/2043#issuecomment-472900431) > Actually, this broke with the grammar changes in #1685. Basically, we have this rule at stmt level: > > ``` > Statement > / LabeledStatement > ......

The Rust project has 3 related attempts to cover the spec - 1. a human readable specification in an idealized language https://github.com/RalfJung/minirust - 2. a debuggable language spec to simplify...

Currently, `grammar.y` is out of sync with the actual grammar implemented by the `zig` compiler (in `std/zig/tokenizer` and `std/zig/parser.zig`). These are the places where `grammar.y` and `zig` diverges, found with...

this allows an overview of all the errors in the tests so that they can be fixed

This will help to update the tests to be conformant to the spec the compiler uses

```zig while (true) { !break; } while (true) { --break; } while (true) { 1 + break; } ``` All three pass the grammar as defined in `grammar.y`, and I...