Warning: session_start(): open(/var/lib/php/sessions/sess_bj61o0gh1819fulau3tv4sgh4q, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
Mini script interpreter (draft) [1001305]

Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

19
LINES

< > BotCompany Repo | #1001305 // Mini script interpreter (draft)

Document

Mini script interpreter
-----------------------

* Call functions in main class.

  print("hello");

* Read and write variables in main class.

  x = 1;
  x = x+1;

* Use local variables.

  local x;
  x = "hello";
  print(x);

(Might want to use a "local" declaration so as to not confuse local variables with those in main.)

download  show line numbers   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1001305
Snippet name: Mini script interpreter (draft)
Eternal ID of this version: #1001305/1
Text MD5: 9d93850849b6015637e71fefb9893910
Author: stefan
Category: javax
Type: Document
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-08 17:37:18
Source code size: 348 bytes / 19 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 888 / 224
Referenced in: [show references]