1 | sclass WeightedProduction { |
2 | S a, b, c; // a + b = c; for subclassing, b = null |
3 | double weight; |
4 | S simplificationHint, plausibilityFunction; |
5 | |
6 | *() {} |
7 | *(S *a, S *b, S *c, double *weight) {} |
8 | *(S *a, S *c, double *weight) {} |
9 | |
10 | toString { |
11 | ret a + (b == null ? "" : " + " + b) + " = " + c |
12 | + appendSquareBracketStuff(simplificationHint); |
13 | } |
14 | } |
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: | 416 / 980 |
Version history: | 5 change(s) |
Referenced in: | [show references] |