mcstasscript.helper.component_reader.c_integer_literal_base
mcstasscript.helper.component_reader.c_integer_literal_base¶
- mcstasscript.helper.component_reader.c_integer_literal_base(s: str) int ¶
Determine the base of a C style integer literal.
base literal ——- ——————– binary 0b### for # in (0,1) octal 0#### for # in (0,7) decimal N#### for N in (1,9) and # in (0,9) hexadecimal 0x### for # in (0,9)&(A,F)
The ambiguity between octal and decimal for ‘0’ is not important since both result in the same integer value.