Skip to content

AnthonyTsui/Compiler-Implementation-CS420

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compiler Project for CSc 42000 Spring 2019

Programming language is optional with no restrictions Standard Compiler Components:

  • Lexer (Tokenizer)
  • Parser
  • Semantic Analyzer
  • Code Generator (IR, probably going to use LLVM)

Status:

  • Current using Python for implementation
  • Libraries being used as a learning tool: rPLY, LLVM/lite Not using rPLY for Lexer and Parser
  • rPLY for Lexer & Parser
  • LLVM for generating machine code [?] Need to read up on LLVM after the other parts
  • Current language input: Unknown because the professor hasn't told us yet. So thats cool. Will assume Pascal as input for now Pascal is the input language.

Features:

  • Pascal Program
  • Variable
  • Assignments**(Required)** (Required)
  • Writeln (done for strings)
  • Addition/Subtraction
  • Multiplication/Division
  • TypeChecking
  • Begin/End
  • Symbol Table
  • If/Else (Required)
  • While (Required)
  • And (Required)
  • Procedures (Kind of) (Required)
  • Declarations (Required)
  • Repeat (Required)
  • Goto (Required)
  • Case (Required)
  • Tokenizer (Kind of done?)
  • Lexer ^
  • Parser ^
  • Code Generator/Stack Machine: I have no idea how to approach this atm. Finishing some functions before I move on to this.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors