tokay-lang / tokay

Tokay is a programming language designed for ad-hoc parsing, inspired by awk.
https://tokay.dev
MIT License
236 stars 7 forks source link

Context-based stacks #114

Closed phorward closed 12 months ago

phorward commented 1 year ago

This Pull Request enforces that there's no global stack in Thread anymore, but a stack on every context. This doesn't grow the stack in one big Vec, but splits it into they individual contexts. Stacks are kept separate, for security and modularity.

phorward commented 12 months ago

Did some stats with tokay.tok regarding runtime impact - there is none, so it works as good as before and is more modular.