Download Jar. Libraryless. Click here for Pure Java version (6809L/48K).
1 | !7 |
2 | |
3 | //set flag AllowMetaCode. |
4 | //meta-postProcess { tok_embeddedFunctions }
|
5 | |
6 | sS bla() {
|
7 | S x = "hello"; |
8 | |
9 | embedded S calc() { ret x + " " + x; }
|
10 | |
11 | ret calc() + " " + calc(); |
12 | } |
13 | |
14 | p-exp {
|
15 | print(bla()); |
16 | } |
Began life as a copy of #1025199
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: | #1025201 |
| Snippet name: | Embedded function test (actual) |
| Eternal ID of this version: | #1025201/5 |
| Text MD5: | 3482c865deae7eb260fd45328ec59b8d |
| Transpilation MD5: | d2b72bda4918bfeda9c46d6860b82511 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-09-13 13:16:36 |
| Source code size: | 223 bytes / 16 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1274 / 3683 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |