0.For visitors:
This project is planning to be refactored. We will come back with new Specifications. like:
- More clean code.
- GC
- Module
This is a project contains WeakScirpt's Interpreter and its util
(contains a TokenizerBuilder & a ParserGenerator )
Weak-Type
Dynamic-Type
Interpreted
Running on Analysis tree
FP
OOP
- (Mark-Sweep GC)
A program for finding prime numbers.
{
var system;
system.prime = func(){
var a;var i;var j;var n;var flag;
for(i=2;i<=1000;i=i+1){
flag = 0;
for(j=2;j<i;j=j+1){
if(i % j == 0){
flag = 1;
break;
}
}
if(flag == 0){
print(i);
print(" ");
}
}
}
system.prime();
}