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

12
LINES

< > BotCompany Repo | #1012537 // Parse a standard function [dev.]

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

Download Jar. Libraryless. Click here for Pure Java version (5240L/36K).

1  
!7
2  
3  
p {
4  
  S text = loadSnippet(#1012531);
5  
  print(text);
6  
  L<S> tok = javaTok(text);
7  
  L<S> block = tok_firstBlock(tok);
8  
  if (block == null) ret with print("No block");
9  
  L<S> contents = dropFirstTwoAndLastTwo(block);
10  
  LL<S> statements = tok_splitJavaStatements(contents);
11  
  pnlStruct(statements);
12  
}

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

No comments. add comment

Snippet ID: #1012537
Snippet name: Parse a standard function [dev.]
Eternal ID of this version: #1012537/1
Text MD5: 9b3474760bac7f20b624fc55880a063c
Transpilation MD5: c76c33c5f732be9e44f3e8f4652dadef
Author: stefan
Category: javax / parsing
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-07 01:26:32
Source code size: 312 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 433 / 1033
Referenced in: [show references]