parse imports with fixed paths before running all the code

This commit is contained in:
2024-02-23 21:50:53 +00:00
parent 7f86d345ae
commit b3a07d7f63
6 changed files with 134 additions and 68 deletions

1
tests/circular_import.ar Normal file
View File

@@ -0,0 +1 @@
import "circular_test"

1
tests/circular_test.ar Normal file
View File

@@ -0,0 +1 @@
import "circular_import"

View File

@@ -1,5 +1,5 @@
let zero = 1e-1000
let diff(f) = (x) = (f(x + zero) - f(x)) / zero
let h = 1e-1000
let diff(f) = (x) = (f(x + h) - f(x)) / h
let f(x) = x^10+x^9+x^8+x^7+x^6+x^5+x^4+x^3+x^2+x+1