Download Jar. Libraryless. Click here for Pure Java version (8025L/55K).
!7 srecord Did$HappenBefore$(O event1, O event2) {} srecord WhenDid$Happen(O event) {} srecord $HappensAtSecond$(O event, O y) {} sO parseArg(S s) { ret isInteger(s) ? parseInt(s) : s; } sO parse(S s) { ret defaultClassesAndPatterns().parse(s, if1 parseArg); } p-exp { testFunctionValues parse( "Did X happen before Y?" := Did$HappenBefore$("X", "Y"), "when did Z happen" := WhenDid$Happen("Z"), "{event 1} happens at second 100" := $HappensAtSecond$("event 1", 100) ); }
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: | 528 / 1307 |
| Version history: | 2 change(s) |
| Referenced in: | #1025458 - defaultRecordParse #1025459 - Propositions to objects, step 6 - parsing (shortened 3) |