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

8
LINES

< > BotCompany Repo | #1021335 // ai_parseNounVerbNoun

JavaX fragment (include)

static T3<S> ai_parseNounVerbNoun(LS tok) {
  S a, b, c;
  ret l(tok) == 3*2+1
    && isNoun(a = uncurly(tok.get(1)))
    && isVerb(b = uncurly(tok.get(3)))
    && isNoun(c = uncurly(tok.get(5)))
    ? t3(a, b, c) : null;
}

Author comment

Began life as a copy of #1021300

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021335
Snippet name: ai_parseNounVerbNoun
Eternal ID of this version: #1021335/3
Text MD5: d793593f22dad55b2455e1bffb39e32f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-08 18:54:31
Source code size: 230 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 337 / 343
Version history: 2 change(s)
Referenced in: [show references]