项目作者: aalvrz

项目描述 :
:coffee: Ada language compiler written in Java that features lexical and syntax analysis using JFlex and JavaCup.
高级语言: Java
项目地址: git://github.com/aalvrz/ADA-Compiler.git
创建时间: 2015-07-14T16:51:24Z
项目社区:https://github.com/aalvrz/ADA-Compiler

开源协议:

下载


Ada Compiler

This program is the 1st stage of an Ada Compiler written in Java. It implements some Java libraries such as JFlex (for lexical analysis) and JavaCup for defining the language grammars.

This program uses a very basic GUI where you can type in Ada code and save the file to the file system. Once it is saved, it can be processed for analysis by clicking the “Compile” button.

GUI

NOTE: Files must be saved before being compiled.

Running the Program

  1. Download the repository as a .zip file.
  2. Extract the files.
  3. Run the /dist/Compilador.jar file.

Example Ada Code

Below is a basic example code in Ada. More examples can be found in the Ada Wikipedia page).

  1. procedure Example is
  2. begin
  3. a := 10;
  4. end Example;