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

311
LINES

< > BotCompany Repo | #1021389 // RuleEngine2 - with multiple conditions per rule & facts

JavaX fragment (include)

java.lang.RuntimeException: Unknown token 2: <: 
Warning: session_start(): open(/var/lib/php/sessions/sess_bmgma94n7ni7jddd3jlm7lu9pp, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
{"1000415":"\"set\" function (set field by reflection)","1000567":"isInteger","1000619":"get function","1000628":"first function","1000719":"dropLast function (drop last elements of array\/list\/string)","1000810":"join function + array version","1000811":"parseInt - returns 0 on \"\" or null","1001038":"last function (get last element of list or last character in string)","1001135":"isQuoted - now accurate by default","1001496":"class Matches","1001518":"l function (synonym of length), length of arrays, strings, lists, size of maps","1001520":"eqic (short for equalsIgnoreCase)","1001695":"litmap - skips null values","1001696":"parseDouble","1001842":"match - synonym of match3","1001876":"jmatch function (match with javaTok, keeps punctuation) - pattern goes first (unlike jfind). See also jmatch2","1001913":"unnull","1002012":"assertNotNull","1002288":"printStackTrace","1002348":"nempty - not empty","1003239":"map - call function on list (takes function name, Runnable or function object with \"get\" method) \/ now also works on maps","1003329":"cic - short for containsIgnoreCase","1003340":"startsWith - now also for lists","1003382":"ll - synonym of litlist (literal list)","1003609":"nextToLast","1003800":"endsWith","1004216":"T3 - value triple - synonym: Triple","1004219":"Pair - value pair; sorted by a, then b","1004220":"pair - make value pair","1007439":"lines - short for fromLines \/ toLines","1007768":"faster eq function (if you never compare a BigInt to an Int or Long), LIVE","1011493":"callAndMake - synonym of callAndMake_orDirect","1012679":"ciSet - synonym of caseInsensitiveSet","1013092":"addToOrCreateList - synonym of addDyn - add to list and create list if necessary","1015981":"F2 - function with two arguments","1017131":"jMatchStart function - match first tokens, return rest","1017203":"antiFilter - drop where predicate matches","1017697":"javaTokWithBrackets - synonym of javaTokPlusBrackets","1018679":"firstWhere - synonym of findWhere","1021252":"splitAtDoubleArrow_pair - javaTok and split at \"=>\" (and trim). uses javaTokWithBrackets","1021277":"ai_wordsInBothSidesOfPair_uncurly","1021388":"tok_splitAtPlusAtBeginningOfLine","1021389":"RuleEngine2 - with multiple conditions per rule & facts","1021393":"ai_rule_pair_expandPlusArrow - expand \"+=>\"","1021417":"matchAny_firstGroup","1021448":"RuleEngine2_MatchedRule","1021491":"jmatchAny - synonym of jmatch_any","1021555":"gazelle_parseInstruction","1021653":"getJMatches_all","1021743":"IF1 - function with one argument (interface version)","1021808":"listSetWithCreate","1022246":"tok_groupLastTokensToMatchPattern","1022263":"gazelle_purposeFromComments","1022437":"zipCodeTokensToCIMap_strict_withoutEquals - only if length matches and there are no map overwrites","1022451":"GRuleLine - a line in a Gazelle rule (in or out) with annotations","1024021":"with - synonym of withComputing"} at main.fail(m1008705.java:1589) at main$jsonDecode_Y.fail_base(m1008705.java:14008) at main$jsonDecode_Y.fail(m1008705.java:14006) at main$jsonDecode_Y.parseExpr(m1008705.java:14058) at main$jsonDecode_Y.parse(m1008705.java:14012) at main.jsonDecode(m1008705.java:13990) at main.jsonDecodeMap(m1008705.java:12844) at main.getSnippetTitles(m1008705.java:10820) at main$JavaXHyperlinker.codeToHTML(m1008705.java:6209) at main.html2(m1008705.java:85) at main.html(m1008705.java:67) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:577) at main.invokeMethod(m1008705.java:1601) at main.callOpt_withVarargs(m1008705.java:4387) at main.callOpt(m1008705.java:3326) at main.callHtmlMethod2(m1008705.java:11404) at main$MyHTTPD$1.get(m1008705.java:7337) at main$MyHTTPD$1.get(m1008705.java:1) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:577) at main.invokeMethod(m1008705.java:1601) at main.safeCallF(m1008705.java:642) at main.callF(m1008705.java:611) at main$MyHTTPD.serve(m1008705.java:7373) at main$NanoHTTPD.serve_2(m1008705.java:9572) at main$NanoHTTPD.serve(m1008705.java:9553) at main$NanoHTTPD$HTTPSession.execute(m1008705.java:8453) at main$NanoHTTPD$ClientHandler.run(m1008705.java:7829) at java.base/java.lang.Thread.run(Thread.java:833)

Author comment

Began life as a copy of #1021346

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1021389
Snippet name: RuleEngine2 - with multiple conditions per rule & facts
Eternal ID of this version: #1021389/123
Text MD5: e2d7beca60770ca7cfa04b2b46a91d1f
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-29 15:46:15
Source code size: 10204 bytes / 311 lines
Pitched / IR pitched: No / No
Views / Downloads: 1052 / 1682
Version history: 122 change(s)
Referenced in: #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)