This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// memory registers | |
const vars = new Map(); // { varName: value } | |
// constants | |
const varStatement = /[^\s]\s?\=\s?[^\s]/i; | |
const conditionStatement = /[^\s]\s?(>=|<=|>|<|==)\s?[^\s]/; | |
const aritimeticStatement = /[0-9]*\s?(\*|\+|\/|\-|\%)\s?[0-9]*/; | |
const ifStatement = /^if\([^]+\):$/; | |
const whileStatement = /^while\([^]+\):$/; | |
const printStatement = /^print\([^]+\)/; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RuPaulThreadsRace { | |
static boolean ready = false; | |
static volatile StringBuffer stringBuffer = new StringBuffer(); | |
private static abstract class Tester extends Thread { | |
abstract String name(); | |
void recursive(int i) { | |
if(i==0){ return; } | |
stringBuffer.append(name()); |