mirror of
https://github.com/ParkerTenBroeck/coroutines.git
synced 2026-06-06 21:00:35 -04:00
20 lines
No EOL
665 B
Java
20 lines
No EOL
665 B
Java
package lexer;
|
|
|
|
import com.parkertenbroeck.coroutines.generator.Gen;
|
|
import com.parkertenbroeck.coroutines.bcsm.RT;
|
|
import com.parkertenbroeck.coroutines.bcsm.loadtime.CoroutineClassLoader;
|
|
|
|
public class Main {
|
|
public static void main(String[] args) {
|
|
RT.runWithCoroutine(CoroutineClassLoader.Config.builtin().write_classes("build/modified/generators/"), (Object) args);
|
|
|
|
lexer();
|
|
}
|
|
|
|
static void lexer(){
|
|
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);
|
|
}
|
|
}
|
|
} |