Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

34
LINES

< > BotCompany Repo | #1032654 // test_tok_localMacro

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4800L/28K).

1  
svoid test_tok_localMacro() {
2  
  testTranspilationFunction tok_localMacro(
3  
    [[
4  
      macro declareS { S s = blubbi(); }
5  
6  
      run {
7  
        declareS
8  
        print(s);
9  
      }
10  
    ]],
11  
      
12  
    [[
13  
      run {
14  
        S s = blubbi();
15  
        print(s);
16  
      }
17  
    ]],
18  
    
19  
    [[
20  
      macro bla { blu() }
21  
22  
      { bla }
23  
      
24  
      macro bla { blo() }
25  
      
26  
      { bla }
27  
    ]],
28  
      
29  
    [[
30  
      { blu() }
31  
      { blo() }
32  
    ]]
33  
  );
34  
}

Author comment

Began life as a copy of #1032612

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032654
Snippet name: test_tok_localMacro
Eternal ID of this version: #1032654/6
Text MD5: 838d16fbf3d20f2b387cd46b3c2e47e6
Transpilation MD5: 85b02119974c80b15524719da4d98c70
Author: stefan
Category: javax / transpiling
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-30 05:10:35
Source code size: 477 bytes / 34 lines
Pitched / IR pitched: No / No
Views / Downloads: 93 / 152
Version history: 5 change(s)
Referenced in: [show references]