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

12
LINES

< > BotCompany Repo | #1026501 // MMOPattern

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2715L/17K).

sclass MMOPattern {
  srecord Phrase(S phrase, bool quoted) > MMOPattern {}
  srecord And(L<MMOPattern> l) > MMOPattern {}
  srecord Or(L<MMOPattern> l) > MMOPattern {}
  srecord Not(MMOPattern p) > MMOPattern {}
  
  // v2 patterns
  
  srecord Weighted(double weight, MMOPattern p) > MMOPattern {}
  srecord StartOfLine(MMOPattern p) > MMOPattern {}
  srecord EndOfLine(MMOPattern p) > MMOPattern {}
}

Author comment

Began life as a copy of #1026499

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026501
Snippet name: MMOPattern
Eternal ID of this version: #1026501/8
Text MD5: db09e795c17db6aa9ee5ec0de595421e
Transpilation MD5: 9f56f631182ff27bbb015d256d68ddbf
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-05-17 14:08:39
Source code size: 414 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 328 / 714
Version history: 7 change(s)
Referenced in: [show references]