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

13
LINES

< > BotCompany Repo | #1002731 // Test snlToTree with empty string and "x + 1" and other cases

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (3533L/24K/77K).

!759

p {
  printStructure(snlToTree(""));
  printStructure(snlToTree(" // comment"));
  printStructure(snlToTree("i [= x]"));
  printStructure(snlToTree("X + 1"));
  printStructure(snlToTree("x + 1"));
  printStructure(snlToTree("1 + 1"));
  printStructure(snlToTree("for [x] and [y]"));
  printStructure(snlToTree("[in X]"));
  printStructure(snlToTree("[in S X]"));
}

download  show line numbers  debug dex  old transpilations   

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

Comments [hide]

ID Author/Program Comment Date
1211 stefan Aha - yields l("") in both cases 2016-02-18 19:07:05

add comment

Snippet ID: #1002731
Snippet name: Test snlToTree with empty string and "x + 1" and other cases
Eternal ID of this version: #1002731/1
Text MD5: 3c0e060ef21829dcdaf57b63ca6b6bf4
Transpilation MD5: 24659954e085f5fa05eb05bb3eda14ba
Author: stefan
Category: snl
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-02-25 21:16:19
Source code size: 382 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 977 / 1059
Referenced in: [show references]