Skip to content

trilliwon/cminus-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cminus-compiler

  1. Scanner
    • Implementation Of Lexer
    • Using flex
  2. Parser
    • just using yacc
  3. Semantic analyzer
    • Implementation of Symbol Table
    • Implementation of Type Checker

Semantic Analysis

  • main.c
    • Modify NO_ANALYZE, TraceParse, and TraceAnalyze to suit your assignment
  • symtab.h symtab.c
    • Add scope and type to symbol table
    • Implement hash table
  • analyze.c
    • Insert built-in function
      • Input(), output()
    • Modify symbol table generation
    • Modify the checkNode() function to check the semantics of C-Minus

Execution

$ make
$ ./compiler gcd.cm

About

C- Compiler for Programming Assignment

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published