Coder Social home page Coder Social logo

ppl's Introduction

Principles of Programming Languages

Giới Thiệu

Nguyên lý Ngôn ngữ Lập trình (PPL) là một trong những môn khó nhất trong toàn bộ chương trình đào tạo ngành Khoa học máy tính của Bách Khoa. Mục đích của các bài tập lớn ở môn này chính là xây dựng một trình biên dịch (compiler) cho một ngôn ngữ được đặc tả riêng biệt bởi các giảng viên trong trường và luôn được thay thế sau mỗi kỳ học 😭.

Ở học kỳ này, sinh viên được yêu cầu xây dựng compiler cho ngôn ngữ BKIT được đặc tả theo file BKIT2009 Specification-2.2.pdf.

Cấu Trúc Thư Mục

Thư mục slides chứa các slide được dùng để giảng dạy môn này.

3 thư mực còn lại gồm 3 phases tương ứng với 3 assignments, bao gồm:

  • Phase 1: Xây dựng Lexer và Parser, truy cập ở thư mục assignment1

    • assignment1/initial/src/main/bkit/parser/BKIT.g4
    • assignment1/initial/src/test/LexerSuite.py
    • assignment1/initial/src/test/ParserSuite.py
  • Phase 2: Xây dựng ASTGenerator, truy cập ở thư mục assignment2

    • assignment2\initial\src\main\bkit\astgen\ASTGeneration.py
    • assignment2\initial\src\test\ASTGenSuite.py
  • Phase 3: Xây dựng Static Checker, truy cập ở thư mục assignment3

    • assignment3\initial\src\main\bkit\checker\StaticCheck.py
    • assignment3\initial\src\test\CheckSuite.py
  • Phase 4: Xây dựng Code Generator (chưa hoàn thành)

Lưu Ý

Nên sử dụng PyCharm để hiện thực assignment 3 vì VS Code có thể bị lỗi không so khớp kiểu sử dụng hàm type hoặc isinstance được vì sự sai khác giữa relative path của VS Code (VS Code sẽ nhận dạng bkits.utils.xx là 2 kiểu khác nhau).

ppl's People

Contributors

lwuminhtris avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.