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

21
LINES

< > BotCompany Repo | #1002384 // Chase Java Parsing explist_opt bug

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

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

!752

static S rulesID = "#1002329";

static O parser;

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

  parse("bla"); // should parse as explist_opt
}

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

Author comment

Began life as a copy of #1002326

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1002384
Snippet name: Chase Java Parsing explist_opt bug
Eternal ID of this version: #1002384/1
Text MD5: 53b82ead37a6954592c6a13f44ead947
Transpilation MD5: 62272f63ac559e639d46d079e1bc73b4
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-01-16 03:19:19
Source code size: 460 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 525 / 569
Referenced in: [show references]