S script = [[ class MyClass { a: L<S> } ]]; new GazelleV_LeftArrowScriptParser parser; new Var<byte[]> classBytes; new Var<S> theName; parser.lasClassLoader((name, resolve) -> { theName.set(name); classBytes.set(resolve!); null; }); pcall-short { parser.parse(script)!; } saveBinaryFile(userDir("dev/parameterized-type-test/" + theName-> replace('.', '/') + ".class"), classBytes!); //ret byteArrayToBCEL(classBytes!);
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): bhatertpkbcr, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035322 |
Snippet name: | save LAS-generated class spike |
Eternal ID of this version: | #1035322/1 |
Text MD5: | f1d76558ec109eeedd5c3451485b5a89 |
Author: | stefan |
Category: | javax |
Type: | JavaX (incomplete) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-05-01 01:40:26 |
Source code size: | 427 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 120 / 131 |
Referenced in: | [show references] |