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

23
LINES

< > BotCompany Repo | #1002326 // Test Java Parsing

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

Libraryless. Click here for Pure Java version (692L/5K/17K).

1  
!752
2  
3  
static S rulesID = "#1002329";
4  
5  
static O parser;
6  
7  
p {
8  
  parser = run("#1002369");
9  
  
10  
11  
  parse("class bla {}");
12  
  parse("static class bla<S, S> { String aVar; S x() { return \"bla\"; } }");
13  
  parse("CLASS bla {}"); // wrong case
14  
}
15  
16  
static void parse(S text) {
17  
  print(">> " + text + " <<");
18  
  O result = call(parser, "parse", text, rulesID);
19  
  L<S> classes = cast call(result, "fullMatchClasses");
20  
  print("Matched classes: " + structure(classes));  
21  
  printStructure(get(parser, "recog"));
22  
  print();
23  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1002326
Snippet name: Test Java Parsing
Eternal ID of this version: #1002326/1
Text MD5: e47acba4239ab874dfa5f0d636a9ba96
Transpilation MD5: 970337881bc4434362ca67e03db0c3b1
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-01-15 20:57:00
Source code size: 530 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 692 / 848
Referenced in: [show references]