Download Jar. Libraryless. Click here for Pure Java version (8025L/55K).
1 | !7 |
2 | |
3 | srecord Did$HappenBefore$(O event1, O event2) {} |
4 | srecord WhenDid$Happen(O event) {} |
5 | srecord $HappensAtSecond$(O event, O y) {} |
6 | |
7 | sO parseArg(S s) { ret isInteger(s) ? parseInt(s) : s; } |
8 | sO parse(S s) { ret defaultClassesAndPatterns().parse(s, if1 parseArg); } |
9 | |
10 | p-exp { |
11 | testFunctionValues parse( |
12 | "Did X happen before Y?" := Did$HappenBefore$("X", "Y"), |
13 | "when did Z happen" := WhenDid$Happen("Z"), |
14 | "{event 1} happens at second 100" := $HappensAtSecond$("event 1", 100) |
15 | ); |
16 | } |
Began life as a copy of #1025448
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: | #1025457 |
Snippet name: | Propositions to objects, step 6 - parsing (shortened 2) |
Eternal ID of this version: | #1025457/3 |
Text MD5: | 92c6c907f0ed5a4bce48a35c43db99d2 |
Transpilation MD5: | 973c3c140364f6c1a73471e831185bdc |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-29 19:58:00 |
Source code size: | 505 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 282 / 768 |
Version history: | 2 change(s) |
Referenced in: | [show references] |