]> ocean-lang.org Git - ocean/commit
parsergen: centralise (some of) the collecting of next token.
authorNeilBrown <neilb@suse.de>
Sun, 24 Nov 2013 07:14:11 +0000 (18:14 +1100)
committerNeilBrown <neilb@suse.de>
Sun, 24 Nov 2013 07:17:10 +0000 (18:17 +1100)
commit9ebc82df03b2919afe61ddfd9ae76743663fa6e6
treefa7e233a84a81f9e19abd7d358be8cb271e4a56f
parent32f5baf8857ef1f48451cbb5eacbd0f2f4528abc
parsergen: centralise (some of) the collecting of next token.

A future patch will introduce next sites where we want to
discard the current token.
Rather than calling "token_next" at each site, make it possible
to just set "tk = NULL", and the next token will automatically
be collected when needed.

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