Skip to content

A javac-like compiler built over Flex & Bison software tools. It takes in a Java source code file and emits its JVM bytecode & .class files.

License

Notifications You must be signed in to change notification settings

Elzawawy/java-bytecode-generator

Repository files navigation

Yet Another Java ByteCode Generator

Built using Flex & Bison to take in any java source code and emits its equivalent bytecode. This is a project developed for the PLT (Programming Language Translation) course at Faculty of Engineering, Alexandria University in Spring 2020 Offering.

Running & Testing

To run the program, use the script run.sh as follows:

./run.sh file_name

where filename, can be any file that contains java source code.

For testing purposes while development use this,

./run.sh --debug file_name

or

./run.sh -d file_name

where file_name is a file that exists in the test-cases folder. The extra argument will ensure we keep all our test files from the test-cases folder and picking the suitable unit test case for the part you're developing.

Resources

Understanding Flex & Bison

Understanding Java Bytecode

Understanding Jasmin

About

A javac-like compiler built over Flex & Bison software tools. It takes in a Java source code file and emits its JVM bytecode & .class files.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 5