Skip to content

sdmdg/RPAL-Interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RPAL-Interpreter

An interpreter for the RPAL (Right-reference Pedagogic Algorithmic Language), developed in Python by Group MNP (Intake 22) for the CS3513 course at the Department of Computer Science & Engineering, University of Moratuwa.

Problem Description

  • Lexical Analysis: Tokenize input based on RPAL lexical rules.
  • Parsing: Generate an AST from tokens.
  • AST to ST: Convert AST into a Standardized Tree (ST).
  • Execution: Run the ST on a CSE machine based on defined semantics.

About Our Solution

  • Language: Python
  • Development Tools: Visual Studio Code

Prerequisites

  • Python 3.x

How to run the interpreter

python myrpal.py [file_name]

Generate AST

python myrpal.py -ast [file_name]

Generate raw token list

python myrpal.py -t [file_name]

Generate filtered token list (after screener)

python myrpal.py -ft [file_name]

Generate Standardized Tree

python myrpal.py -st [file_name]

Authors

About

An interpreter for the RPAL (Right-reference Pedagogic Algorithmic Language), developed in Python by Group MNP (Intake 22) for the CS3513 course at the Department of Computer Science & Engineering, University of Moratuwa.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors