You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add comptime parameter support to Zig grammar
- Add `comptime` and `type` to keyword list
- Add `type` as a primitive type for metatype expressions
- Add `comptime_param` rule for comptime parameters: `comptime T: type`
- Add `type_value` expression for passing types as values in calls
- Update `fn_params` to support both comptime and regular parameters
This enables generic functions with Zig-style comptime syntax:
```zig
fn identity(comptime T: type, x: T) T {
return x;
}
```
0 commit comments