This repository contains my solutions for the laboratory exercises in the Programming Language Translation course at the Faculty of Electrical Engineering and Computing.
The first laboratory exercise focuses on the construction of a lexical analyzer. The goal is to implement a tool capable of recognizing and tokenizing the lexical elements of a programming language.
- Lexical Analyzer: Construct a lexical analyzer to identify and tokenize keywords, identifiers, operators, and other lexical elements.
The second laboratory exercise delves into syntax analysis. The task involves building a parser that can analyze the structure of a program and identify its syntactic elements.
- Parser: Develop a syntax analyzer capable of parsing the grammatical structure of a program and generating an appropriate parse tree.
The third laboratory exercise focuses on semantic analysis. The objective is to implement a tool that can analyze and check the meaning of a program in terms of its semantic correctness.
- Semantic Analyzer: Construct a semantic analyzer to perform checks on the program's meaning and identify potential semantic errors.
The topic of the fourth laboratory exercise is code generation. The task is to programmatically realize the generator of the FRISC processor mnemonic code for the PJ language.
- Unfortunately: This laboratory exercise is not implemented because I already had satisfactory grade 😁.
-
Clone the repository:
git clone https://github.com/domamaric/PPJ.git cd PPJ/
- Add docstring for second laboratory exercise.