/A-Command-Line-Based-Interpreter-for-Simple-Programs

A Command-Line-Based Interpreter for Simple Programs

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

COMP2021 Group Project - A Command-Line-Based Interpreter for Simple Programs

A Command-Line-Based Interpreter for Simple Programs

What We Make:

Using Java to make an Interpreter which can enable users to define and interpret the SIMPLE Programming Language.

Some Background about SIMPLE:

SIMPLE Programming Language Structure:

  • two data types:

    • bool (true & false)
    • int (range: -99999 to 99999)
  • Operators (15):

    • +, -, *, /, #, ~, >, >=, <, <=, ==, !=, &&, ||, !
  • Statements (7) - a unique label & a unique name:

    • variable definitions
    • skips
    • assignments
    • conditionals
    • loops
    • prints
    • blocks

Programming Language:

  • Java (JDK 17)

Content:

  • Application.java
  • model
    • Simple.java
    • Parser.java
    • Data.java

Group Members:

A Group Project of OOP (COMP2021) subject - Project Group 1 at The Hong Kong Polytechnic University, made by

  • Guanlin Jiang (David)
  • Gabriel Conte
  • Ossian Bergstrom
  • Yukai Wang (Hugh)