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)

1  
static O parseBottomUp_parser;
2  
3  
// only parse, no explain
4  
static synchronized O parseBottomUp(S text, S rules) {
5  
  if (parseBottomUp_parser == null) {
6  
    parseBottomUp_parser = run(#1002719);
7  
    setOpt(parseBottomUp_parser, keepRules := true);
8  
  }
9  
  ret call(parseBottomUp_parser, "parse", text, rules);
10  
}

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: 344 / 386
Version history: 2 change(s)
Referenced in: [show references]