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

10
LINES

< > BotCompany Repo | #1008816 // parseBottomUp - parse using bottom-up parser and arbitrary rules (not threadsafe)

JavaX fragment (include)

static O parseBottomUp_parser;

// only parse, no explain
static synchronized O parseBottomUp(S text, S rules) {
  if (parseBottomUp_parser == null) {
    parseBottomUp_parser = run(#1002719);
    setOpt(parseBottomUp_parser, keepRules := true);
  }
  ret call(parseBottomUp_parser, "parse", text, rules);
}

Author comment

Began life as a copy of #1002531

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: #1008816
Snippet name: parseBottomUp - parse using bottom-up parser and arbitrary rules (not threadsafe)
Eternal ID of this version: #1008816/3
Text MD5: a6d02aa89715111aaa08a319f0495cf0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-06-09 03:20:05
Source code size: 316 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 389 / 436
Version history: 2 change(s)
Referenced in: [show references]