Navigation Menu

Skip to content

cyberpython/MiniJavaEditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

MiniJavaEditor is the editor part of MiniJed (MiniJed but without the integrated Minijava compiler).
MiniJed is a simple MiniJava IDE (Integrated Development Environment) written in Java/Swing.
It allows you to edit, compile and run MiniJava programs.
The code does not include any part of the MiniJava compiler, but you can integrate your own compiler implementation with the editor by following the instructions below.

Usage

  • Your lexer must throw Exceptions that subclass the abstract class minijed.compiler.infrastructure.MiniJavaLexerException
  • Your Token class must implement the minijed.compiler.infrastructure.MiniJavaToken interface
  • Your parser must throw Exceptions that subclass the abstract class minijed.compiler.infrastructure.MiniJavaParserException and implement its abstract method :
    public abstract MiniJavaToken getToken();
  • Your compiler must subclass the abstract class minijed.compiler.infrastructure.MiniJavaCompiler and implement its abstract method :
    abstract public void compile(Reader input, DefaultListModel output, File outputDir) throws MiniJavaParserException, MiniJavaLexerException, IOException;
  • You must change line 579 of minijed.MiniJedView.java:
    MiniJavaCompiler compiler = new YourMiniJavaCompiler();
    so that it creates a new instance of your compiler.

License ------- MiniJavaEditor and its source code is distributed under the terms of the [MIT License](http://www.opensource.org/licenses/mit-license.php).
The included JSyntaxPane source code is distributed under the [Apache License v2.0](http://www.apache.org/licenses/LICENSE-2.0).
The included DocumentHandling(documentcontainer.* package) source code is distributed under the [Apache License v2.0](http://www.apache.org/licenses/LICENSE-2.0).

About

A Java/Swing source code editor that can easily integrate with a MiniJava compiler implementation in Java.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages