mirror of
https://github.com/ParkerTenBroeck/coroutines.git
synced 2026-06-07 05:08:51 -04:00
started cleaning up and organizing code
This commit is contained in:
parent
70920b14a8
commit
06defb5944
6 changed files with 531 additions and 522 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue