sclass WeightedProduction { S a, b, c; // a + b = c; for subclassing, b = null double weight; S simplificationHint, plausibilityFunction; *() {} *(S *a, S *b, S *c, double *weight) {} *(S *a, S *c, double *weight) {} toString { ret a + (b == null ? "" : " + " + b) + " = " + c + appendSquareBracketStuff(simplificationHint); } }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017387 |
Snippet name: | WeightedProduction |
Eternal ID of this version: | #1017387/6 |
Text MD5: | 02ae1cccdc8a8b4e1d74c0255b28d9cb |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-20 13:58:28 |
Source code size: | 373 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 414 / 976 |
Version history: | 5 change(s) |
Referenced in: | [show references] |