int addr = gen_address();
$code.addr = addr;
$code.append(
ldc(44),
istore(addr),
"getstatic java/lang/System/out Ljava/io/PrintStream;",
iload(addr),
"invokevirtual java/io/PrintStream/print(I)V");
int addr = gen_address();
$code.addr = addr;
$code.append(
ldc(22),
istore(addr),
"getstatic java/lang/System/out Ljava/io/PrintStream;",
iload(addr),
"invokevirtual java/io/PrintStream/print(I)V");
This grammar will output a number 44
and 22
But the output will be look like this ( 4422
)
I want to add a space between the numbers so the output would be ( 44 22 )
I think something needs to be changed in the
"invokevirtual java/io/PrintStream/print(I)V");