mirror of
https://github.com/ParkerTenBroeck/coroutines.git
synced 2026-06-06 21:00:35 -04:00
improved package names, split demos
This commit is contained in:
parent
ecb18b417e
commit
a577a825f8
27 changed files with 350 additions and 272 deletions
20
app/src/main/java/lexer/Main.java
Normal file
20
app/src/main/java/lexer/Main.java
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
package lexer;
|
||||
|
||||
import com.parkertenbroeck.generator.Gen;
|
||||
import com.parkertenbroeck.bcms.RT;
|
||||
import com.parkertenbroeck.bcms.loadtime.StateMachineClassLoader;
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
RT.runWithStateMachines(StateMachineClassLoader.Config.builtin(), (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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue