Libraryless. Click here for Pure Java version (3214L/20K).
sbool matchUsingFunctionNameAndPattern(FunctionNameAndPattern fp, S s, Matches m) { if (fp == null) false; S f = fp.function, pat = fp.pattern; if (eqOneOf(f, "if", "match", "match3")) ret match(pat, s, m); if f eq "matchX" ret matchX(pat, s, m); if f eq "matchX2" ret matchX2(pat, s, m); if f eq "matchX_vbar" ret matchX_vbar(pat, s, m); warn("Unknown function: " + fp); false; } sbool matchUsingFunctionNameAndPattern(FunctionNameAndPattern fp, S s) { ret matchUsingFunctionNameAndPattern(fp, s, null); }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025364 |
Snippet name: | matchUsingFunctionNameAndPattern |
Eternal ID of this version: | #1025364/4 |
Text MD5: | 9334be6ad53ae05af15c8f1518da7bda |
Transpilation MD5: | f99f3459b4bda47b886cb0379451e292 |
Author: | stefan |
Category: | javax / html |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-26 13:51:21 |
Source code size: | 538 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 197 / 280 |
Version history: | 3 change(s) |
Referenced in: | [show references] |