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

19
LINES

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

Document

1  
Mini script interpreter
2  
-----------------------
3  
4  
* Call functions in main class.
5  
6  
  print("hello");
7  
8  
* Read and write variables in main class.
9  
10  
  x = 1;
11  
  x = x+1;
12  
13  
* Use local variables.
14  
15  
  local x;
16  
  x = "hello";
17  
  print(x);
18  
19  
(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: 476 / 117
Referenced in: [show references]