Literals/Integer: Difference between revisions

Content added Content deleted
Line 1,653: Line 1,653:
<lang Quackery>[ 2 base put ] now!
<lang Quackery>[ 2 base put ] now!


( The Quackery compiler now expects numeric literals to be binary. )
( The Quackery compiler now expects numeric literals to be in binary. )


[ base release ] now!
[ base release ] now!


( The Quackery compiler now expects numeric literals to in whichever
( The Quackery compiler now expects numeric literals to be in whichever
base they were previously. The default base is decimal. )</lang>
base they were previously. The default base is decimal. )</lang>


If a new compiler directive akin to <code>hex</code> is required, say to allow occasional octal literals in the form <code>octal 45</code>, the compiler can be extended like this;
If a new compiler directive akin to <code>hex</code> is required, say to allow occasional octal literals in the form <code>octal 45</code>, the compiler can be extended like this;