mirror of
https://github.com/irmen/prog8.git
synced 2025-02-16 22:30:46 +00:00
because Antlr doesn't allow the grammar to contain a sizeof(typename) rule to override the sizeof(identifier) rule
14 lines
237 B
Lua
14 lines
237 B
Lua
%import textio
|
|
%zeropage basicsafe
|
|
|
|
main {
|
|
sub start() {
|
|
txt.print_ub(sys.sizeof_byte)
|
|
txt.spc()
|
|
txt.print_ub(sys.sizeof_word)
|
|
txt.spc()
|
|
txt.print_ub(sys.sizeof_float)
|
|
txt.nl()
|
|
}
|
|
}
|