1 | S script = [[ class MyClass { a: L<S> } ]]; |
2 | new GazelleV_LeftArrowScriptParser parser; |
3 | new Var<byte[]> classBytes; |
4 | new Var<S> theName; |
5 | parser.lasClassLoader((name, resolve) -> { theName.set(name); classBytes.set(resolve!); null; }); |
6 | pcall-short { parser.parse(script)!; } |
7 | saveBinaryFile(userDir("dev/parameterized-type-test/" + theName-> |
8 | replace('.', '/') + ".class"), classBytes!); |
9 | //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: | 122 / 133 |
Referenced in: | [show references] |