]> ocean-lang.org Git - ocean/commit
parsergen: don't bother with indent_depth
authorNeilBrown <neil@brown.name>
Wed, 10 Mar 2021 04:26:59 +0000 (15:26 +1100)
committerNeilBrown <neil@brown.name>
Wed, 10 Mar 2021 04:31:49 +0000 (15:31 +1100)
commit42d68f83351fb7cc2974e4ef126af258e63cea0f
tree98aa542b5d8c61ffa241dd8e00cd4c0c6e535d03
parent1dd9f61bbc7e8890b5407ba084793817e55fe502
parsergen: don't bother with indent_depth

We don't need to store the indent_depth if we just shift the bit-stack
up and down.  <<1 pushes a zero, >>1 pops, |=1 changes the zero to one.

Signed-off-by: NeilBrown <neil@brown.name>
csrc/parsergen.mdc