Libraryless. Click here for Pure Java version (3214L/20K).
1 | // a rule that has a string as LHS and multiple strings as RHS, |
2 | // plus an optional list of variables (usually a ciSet) |
3 | srecord Rule_StringToStrings(S in, LS out, Set<S> vars) {
|
4 | *(S *in) {}
|
5 | *(S *in, LS *out) {}
|
6 | |
7 | toString {
|
8 | ret "Rule_StringToStrings: " + in + " :=\n" |
9 | + (vars == null ? "" : indentx("vars " + curly(joinWithComma(vars))) + "\n")
|
10 | + indentx(pnlToString("out ", out));
|
11 | } |
12 | } |
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: | 440 / 876 |
| Version history: | 9 change(s) |
| Referenced in: | [show references] |