Simuliert eine JVM.
Zur Zeit funktioniert nur ein begrenzte Anzahl an op-codes. Dieses Programm ist OpenSource:
https://gitlab.com/neoexpert/jvm
Beispiel-Programm, das ausgeführt werden kann:
public class Main {
public static void main(String[] args) {
fak(10);
}
public static int fak(int i){
if(i<=0)
return 1;
return i*fak(i-1);
}
}
တစ်ဦးကွန်ပိုင်းလာအဖြစ်တက်ကြွလာသည်။
လောလောဆယ် op-codes တွေကိုသာကန့်သတ်အရေအတွက်ကအလုပ်လုပ်ပါတယ်။ ဒီပရိုဂရမ် open source ဖြစ်ပြီးဖြစ်ပါသည်:
https://gitlab.com/neoexpert/jvm
ကွပ်မျက်ခံရနိုင် example အစီအစဉ်ကို:
အများပြည်သူလူတန်းစားပင်မ {
အများပြည်သူငြိမ်ပျက်ပြယ်အဓိက (String [] args) {
FAK (10);
}
အများပြည်သူငြိမ် int FAK (ဈ int) {
လျှင် (ဈ <= 0)
ပြန်လာ 1;
ကိုယ့်ဘေးဖယ် (ဈ-1) * ပြန်လာ;
}
}