readme

来自「A very smaller script interpretor that j」· 代码 · 共 60 行

TXT
60
字号
J2me game script engine

  It's a j2me based script engine. Inclde a java package gscript that let j2me can run a txt script like basic.

Version history:

0.9.0:
Repair bugs:
Change the extended parameter variable name to lower case in start()
Repair calcExprLogImpl() and calcExprNumImpl() bug that can't compute the expression a=(2)
Repair Stdlib.java standard funcation bug that pop parameter sequence error.
Repair load() method bug that error parse the end of script line of rem

0.8.0 :
Changed logic expresion caculate , solved 0.7.0 can't process expression 'a+b>2' , added &|! logic operator that  and ,or,not ; 
Added datatype logic value true and false; 
Changed array definition; 
Changed datatype inter restore struct; 
Repaired some bugs.


0.7.0 :  
  there are 2 known issue ,it would be fixed at next version.
    * 1. Logic expression must be a >2 like ,can't be : a+b >2 ,because a+b can't compute now .
    * 2. array can't be bool type ,can be int (i) or string (s)



-----------------------------------------------------------------
Usage:

1.Made a script Txt file:

      'code example s.txt
      a=3
      b=4
      println(a+b)
      ret
      'code end


2.In application ,Insert follow java code :

      //init Interpreter
      Interpreter ip=new Interpreter();
      //load script file
      ip.load("s.txt");
      //exucte it
      ip.start();










⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?