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: 526 / 132
Referenced in: [show references]