1 | static bool ctxEvalCondition(S cond) {
|
2 | cond = ctxUnbracket(cond); |
3 | L<S> tok = javaTok(cond); |
4 | S t = get(tok, 1); |
5 | if (isQuoted(t)) |
6 | ret ctxEvalPattern(unquoteCtx(t)); |
7 | if (isIdentifier(t) && ( |
8 | l(tok) == 9 && eqGet(tok, 3, "=") && eqGet(tok, 5, "=") && eqGetIC(tok, 7, "true") |
9 | || l(tok) == 3)) |
10 | ret eqic(t, "TRUE") || eqic(ctxGetVar(t), "TRUE"); |
11 | Bool b = woodyEvalTimeCondition(cond); |
12 | if (b != null) ret b; |
13 | CtxExpr exp = ctxParseExpression(cond); |
14 | ret exp.get(); |
15 | } |
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: | #1008912 |
| Snippet name: | ctxEvalCondition |
| Eternal ID of this version: | #1008912/15 |
| Text MD5: | 5cfac0fd2a197a0773d84384c91fb44f |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-06-22 19:50:26 |
| Source code size: | 504 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 858 / 908 |
| Version history: | 14 change(s) |
| Referenced in: | [show references] |