I'm trying to scan and parse my toy language with Flex and Bison which is in C++. I wonder if there is any resources explaining how to generate JVM bytecode from AST in C++. Many thanks!
Asked
Active
Viewed 310 times
2 Answers
1
The language you're using to generate code is halfway moot unless you can find a library to help you. Since most of the tools for directly manipulating Java bytecode seem to be written in Java, your best bet might be output Jasmin assembly, then assembly it into bytecode.

David Ehrmann
- 7,366
- 2
- 31
- 40