Skip to content

ICD20 Homework 3 — Mini-Pascal Compiler This project constructs an Abstract Syntax Tree (AST), performs semantic analysis, and builds symbol tables for scoped variables using a linked list structure. It also demonstrates implementing inheritance-like behavior in C.

Notifications You must be signed in to change notification settings

ChungmanCheng/compiler_hw3

Repository files navigation

ICD20 Homework3

Introducton to Compiler Design - Wuu Yang

Objective:

  • build AST for mini-pascal
  • do some semantic analyses
  • build symbol table for each scope

feature of the parser

  • implement the concept of inheritance in C
  • Using linkedlist as symbol table, slow but easy to implement

PS:

The construction of AST is implement in a very ugly way.
And it's not fully support features of mini-pascal.

There're some known bugs

  • multi array argument

About

ICD20 Homework 3 — Mini-Pascal Compiler This project constructs an Abstract Syntax Tree (AST), performs semantic analysis, and builds symbol tables for scoped variables using a linked list structure. It also demonstrates implementing inheritance-like behavior in C.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published