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

5
LINES

< > BotCompany Repo | #1011748 // ai_spec_parseIf - now disabled

JavaX fragment (include)

static void ai_spec_parseIf(S s) {
  new Matches m;
  if (swic_trim(s, "if ", m) && l(javaTokC(m.rest())) > 1 && !isCurlyBraced(m.rest()))
    ai_postTriple(s, "possibly parses as", takeFirst(3, s) + curlyBrace(m.rest()));
}

Author comment

Began life as a copy of #1011743

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: #1011748
Snippet name: ai_spec_parseIf - now disabled
Eternal ID of this version: #1011748/6
Text MD5: 660f22aa30841d41c7674995e5c6a372
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-19 01:10:59
Source code size: 228 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 503 / 566
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1011749 - ai_spec_parseAnd
#1011756 - ai_spec_tripelize