started cleaning up and organizing code

This commit is contained in:
Parker TenBroeck 2025-04-03 02:17:11 -04:00
parent 70920b14a8
commit 06defb5944
6 changed files with 531 additions and 522 deletions

View file

@ -1,5 +1,16 @@
public class Main {
import generator.Fun;
import generator.Gen;
public class Main implements Runnable {
public static void main(String[] args) {
System.out.println("Hello, World!");
Fun.runWithGeneratorSupport(Main.class);
}
@Override
public void run() {
var gen = Lexer.parse("f7(x,y,z,w, u,v, othersIg) = v-(x*y+y+ln(z)^2*sin(z*pi/2))/(w*u)+sqrt(othersIg*120e-1)");
while(gen.next() instanceof Gen.Yield(var tok)) {
System.out.println(tok);
}
}
}