summaryrefslogtreecommitdiffstats
path: root/src/cache.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2021-03-08 18:18:33 +0100
committerFlorian Westphal <fw@strlen.de>2021-03-11 13:43:30 +0100
commit5896772fe3c5f01696188ea04957a825ee601b12 (patch)
tree42c1971b34a17ea7107bbeb0b60c11d863dd05d1 /src/cache.c
parentf8d5fa7c0523d8058e11c823c4664c9ba9ccf121 (diff)
scanner: introduce start condition stack
Add a small initial chunk of flex start conditionals. This starts with two low-hanging fruits, numgen and j/symhash. NUMGEN and HASH start conditions are entered from flex when the corresponding expression token is encountered. Flex returns to the INIT condition when the bison parser has seen a complete numgen/hash statement. This intentionally uses a stack rather than BEGIN() to eventually support nested states. The scanner_pop_start_cond() function argument is not used yet, but will need to be used later to deal with nesting. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/cache.c')
0 files changed, 0 insertions, 0 deletions