rintolang / rinto

In-development open source programming language based on C/C++
https://rintolang.github.io
GNU General Public License v3.0
3 stars 2 forks source link

Radix Trees #13

Closed zeim839 closed 2 years ago

zeim839 commented 2 years ago

Considering that most rinto language expressions and statements have repeating judgement forms, the most space (and to a lesser extent, time) efficient way to evaluate whether a scanned expression matches a judgement form is via radix lookup.

This PR (⚠️work in progress) introduces self-arranging radix tree nodes, as well as a general radix interface for performing lookup.