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).

!752

static S rulesID = "#1002329";

static O parser;

p {
  parser = run("#1002369");
  

  parse("class bla {}");
  parse("static class bla<S, S> { String aVar; S x() { return \"bla\"; } }");
  parse("CLASS bla {}"); // wrong case
}

static void parse(S text) {
  print(">> " + text + " <<");
  O result = call(parser, "parse", text, rulesID);
  L<S> classes = cast call(result, "fullMatchClasses");
  print("Matched classes: " + structure(classes));  
  printStructure(get(parser, "recog"));
  print();
}

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