Сейчас на форуме: (+2 невидимых) |
eXeL@B —› Оффтоп —› TScript VM |
Посл.ответ | Сообщение |
|
Создано: 19 ноября 2009 17:46 · Личное сообщение · #1 Welcome to the TScript's homepage. TScript is a script language originated by pure personal interest. It currently includes a compiler, a virtual machine, two demos, together with some tiny games written by friends in TScript. The code was written mainly in 2004 and 2005, and it's covered fully by dust. Considering the time spent on this, finally I get some time to publish it. Wish the messy code can be useful to someone. Origin & Introduction TScript is a script language with C-like grammar, but much weaker. The source script of TScript runs on TScript Virtual Machine. This project was originated purely by my interest after my graduation on 2004. What I needed that time was something like: "Hi, my cute computer, I have a symbol 'A' = 5, tell me A + 3 = ?" var a mov a, 5 add a, 3, a display a From then on I could not stop but continuously added something to it. Finally it came to a script which has similar grammar to C: void func1() { int a = 5; DisplayString("" + (a + 3) ); } Here's another sample which prints Fibonacci series by recursive function call: int f(int n) { if(n < 2) return 1; return f(n - 1) + f(n - 2); } void main() { for(int i = 0; i < 10; i++) DisplayString( "" + f(i) ); } очень интересный проект попался на глаза tscripta.sourceforge.net/ в тоже время в некоторых вещах видятся сложности , можно было проще сделать ----- RE In Progress [!] Coding Hazard [!] Stay Clear of this Cube |
|
Создано: 19 ноября 2009 18:09 · Личное сообщение · #2 |
eXeL@B —› Оффтоп —› TScript VM |