Skip to content

aj-michael/minijavac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minijavac

Build Status codecov MIT licensed GitHub release

A Java compiler for a worse version of Java.

Installation/Release instructions

To install, download and unzip the most recent release. Add export PATH="$PATH:/path/to/minijavac-x.y.z/bin" to your bashrc or set the equivalent Windows environment variable.

Running instructions

Minijavac has four commands: generate, lex, parse and typecheck. Each takes exactly one file as a command line argument. generate will create one .class file for each Java class in the source file. The other commands write to standard out.

$ minijavac
usage: minijavac <command> [<args>]

The most commonly used minijavac commands are:
    generate    Generate bytecode for Minijava programs
    lex         Lexical analysis of Minijava program
    parse       Parse Minijava program
    typecheck   Typecheck Minijava program

See 'minijavac help <command>' for more information on a specific command.

Minijavac requires Java 1.5 to execute the bytecode from the generate command.