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

13
LINES

< > BotCompany Repo | #1002684 // parse1 - uses new parser

JavaX fragment (include)

static O parse1_parser;

static O parse1(S text, S rules) {
  ret parse1(javaTok(text), rules);
}

// only parse, no explain
static synchronized O parse1(L<S> tok, S rules) {
  if (parse1_parser == null)
    parse1_parser = run_overBot(/*"#1002472"*/ "#1002719");
  //setOpt(parse1_parser, "debug", true);
  ret call(parse1_parser, "parse", tok, rules);
}

Author comment

Began life as a copy of #1002531

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1002684
Snippet name: parse1 - uses new parser
Eternal ID of this version: #1002684/1
Text MD5: 4aa535099eadc9f02becf773409f2cdd
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-02-18 00:16:13
Source code size: 367 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 714 / 1332
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1008980 - parse1_debug - uses bottom-up parser
#3000238 - Answer for stefanreich (>> t power bot)
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)