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).

svoid test_tok_localMacro() {
  testTranspilationFunction tok_localMacro(
    [[
      macro declareS { S s = blubbi(); }

      run {
        declareS
        print(s);
      }
    ]],
      
    [[
      run {
        S s = blubbi();
        print(s);
      }
    ]],
    
    [[
      macro bla { blu() }

      { bla }
      
      macro bla { blo() }
      
      { bla }
    ]],
      
    [[
      { blu() }
      { blo() }
    ]]
  );
}

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: 90 / 148
Version history: 5 change(s)
Referenced in: [show references]