Skip to content

itdevwu/naive-pascal-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

naive-pascal-compiler

npc is a compiler for the Pascal programming language, written in C++ as a course project of BUPT. It uses ANTLR4 to write lexer and parser, then generates an Abstract Syntax Tree (AST), converts the AST into LLVM IR and finally uses LLVM as the backend to compile into binary code.

Documents

See naive-pascal-compiler 文档索引表

TODO

  • CLI
  • Frontend
    • Lexer
    • Parser
    • AST interfaces
  • Backend
    • LLVM IR translator
    • LLVM controller
  • Tests (partly)

Copyright

Copyright (c) 2023 Zhenglong WU, Zili YAO, Kexiao WU, Yiran REN and Xiyue ZU

This project is protected by copyright law. Unauthorized reproduction or distribution of this project, or any portion of it, may result in severe civil and criminal penalties, and will be prosecuted to the maximum extent possible under the law.

About

A compiler for the Pascal programming language

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published