Is there a java compiler flag that allows me to use goto
as a valid construct? If not, are there any third-party java compilers that supports goto
? If not, are there any other languages that support goto
while at the same time can easily call methods written in Java?
The reason is I'm making a language that is implemented in Java. Gotos are an important part of my language; I want to be able to compile it to native or JVM bytecode, although it has to be able to easily use Java libraries (ie. C supports goto
, but to use it I'd have to rewrite the libraries in C).
I want to generate C or Java, etc source files, and not bytecode or machine code. I'm using a third-party compiler to do that.
JVM support goto at bytecode level. If you are doing your own language, you should use libraries like BCEL or ASM, not generating .java file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With