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
{{ message }}
Repository navigation
Align parse_type with the lexer numeric type vocabulary #405
bugA problem that causes incorrect behavior or crashes.good first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
The string-based type parser in front/parser/src/parser/types.rs accepts any iNN, uNN, or fNN spelling, while the lexer exposes a fixed built-in vocabulary. This can make nested generic spellings such as Box<f12> look like a valid float type until LLVM rejects it. The current prefix checks also try to parse isz and usz as numeric widths before reaching target-sized type handling.
Scope
Make parse_type accept exactly the built-in numeric spellings supported by the lexer.
Preserve isz and usz in nested pointer, array, and generic arguments.
Reject unsupported widths without reaching LLVM.
Add direct parser tests and at least one CLI check regression for a nested invalid numeric type.
Do not add new numeric widths.
Completion criteria
Supported signed, unsigned, float, isz, and usz spellings round-trip.
Unsupported forms such as f12, i7, and overflow widths are rejected before code generation.
Nested ptr, array, and custom generic applications are covered.
Reconfirmed during the alpha-readiness audit following #474.
fun identity(value: isz) -> isz { return value; }
fun main() -> i32 { return identity(1 as isz) as i32; }
On the current head, wavec check exits 101 at front/parser/src/parser/types.rs:76 with Unhandled integer type: ISZ. This remains an alpha blocker; no duplicate issue was opened. The next-work plan is recorded locally before implementation.
bugA problem that causes incorrect behavior or crashes.good first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
Activity
LunaStev commentedon Sep 5, 2026
Reconfirmed during the alpha-readiness audit following #474.
On the current head,
wavec checkexits 101 atfront/parser/src/parser/types.rs:76withUnhandled integer type: ISZ. This remains an alpha blocker; no duplicate issue was opened. The next-work plan is recorded locally before implementation.