Definition dependency analysis

tricu now allows defining terms in any order and will resolve
dependencies to ensure that they're evaluated in the right order.
Undefined terms are detected and throw errors during dependency
ordering.
For now we can't define top-level mutually recursive terms.
This commit is contained in:
James Eversole
2025-01-26 14:50:15 -06:00
parent e2621bc09d
commit 8499772661
9 changed files with 173 additions and 85 deletions

1
test/undefined.tri Normal file
View File

@@ -0,0 +1 @@
namedTerm = undefinedForTesting