Libraryless. Click here for Pure Java version (3214L/20K).
// a rule that has a string as LHS and multiple strings as RHS, // plus an optional list of variables (usually a ciSet) srecord Rule_StringToStrings(S in, LS out, Set<S> vars) { *(S *in) {} *(S *in, LS *out) {} toString { ret "Rule_StringToStrings: " + in + " :=\n" + (vars == null ? "" : indentx("vars " + curly(joinWithComma(vars))) + "\n") + indentx(pnlToString("out ", out)); } }
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: | #1025403 |
Snippet name: | Rule_StringToStrings |
Eternal ID of this version: | #1025403/10 |
Text MD5: | 548aa1cbcc3565ce21ff182b0b5b6f2b |
Transpilation MD5: | 236f5f5d988c75a041ff8461a1b16243 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-28 17:25:49 |
Source code size: | 421 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 212 / 610 |
Version history: | 9 change(s) |
Referenced in: | [show references] |