]> ocean-lang.org Git - ocean/commit
parsegen: unify the "next" frame to go onto stack.
authorNeilBrown <neilb@suse.de>
Sun, 24 Nov 2013 06:36:41 +0000 (17:36 +1100)
committerNeilBrown <neilb@suse.de>
Sun, 24 Nov 2013 06:36:41 +0000 (17:36 +1100)
commit35e535a5a5fc32421f3a5205fbe290ab2bb9fade
treeb70ad6cb77450b91968845a2521c108e3f460dc2
parent7bf1d09bace70d869e08ae53529e7a1b152ed88c
parsegen: unify the "next" frame to go onto stack.

We current have a current 'state' in the parser and a 'sym'
which is a local variable passed around in different ways.
Both of these get pushed onto the stack at the next 'shift'.

We will shortly add some more fields to the stack frame, so unify
'state' and 'sym' in to a 'next' struct in the parser struct which can
easily be extended.

Signed-off-by: NeilBrown <neilb@suse.de>
csrc/parsergen.mdc