/ builtins for shift-reduce parsking
.globl succ,pbundle,goto,iget
.globl stack,unstack,gotab,accept
/stack label of present rule (state)
/should come first in a rule
/unstack(n) deletes last n stacked states
/states are distinguishable from translations in not having
/an exit bit ($1) nor being bundles ($100000)
accept: /clean out all states from stack
/gotab(s1,t1,s2,t2,...sn,tn,0,t)
/checks top of stack for states
/s1,s2,... and goes to t1, t2 accordingly
/if top of stack is not in table, goes to t
bit -(r0),$100001 /find top state