]> git.draconx.ca Git - cdecl99.git/commit
Factor out common parser invocation.
authorNick Bowler <nbowler@draconx.ca>
Thu, 1 Jun 2023 00:29:41 +0000 (20:29 -0400)
committerNick Bowler <nbowler@draconx.ca>
Thu, 1 Jun 2023 00:34:04 +0000 (20:34 -0400)
commitc62990e01b6fc338a2e144a91be1d805fb24e1b8
tree2643a60a11c79026136860da55a71ca3c221b252
parent42759d62ece59ed0087a7254c2f486140fea5692
Factor out common parser invocation.

The two main parsing functions have nearly identical parser invocation
sequences, with the only difference being the flag passed to the scanner
init.  Split that off into a separate function, to simplify the code.

Additionally, if the code is compiled with YYDEBUG, enable parser
debugging.
src/parse-decl.c