LYR-LEX0004
a base prefix with no digits after it
A literal is written 0x, 0o or 0b and no digit of that base follows the prefix.
Explanation
A prefix says in which base the digits after it are read; without digits it says nothing. The literal is refused where it stands.
Write at least one digit of the base after the prefix, 0x0 for zero.
Example
$ cat src/main.lyr
fn main(): void {
let x = 0x;
let _ = x;
}
$ lyric build
error[LYR-LEX0004]: empty integer literal after prefix
error[LYR-PAR0006]: invalid integer suffix: 'x'