Skip to content

YuriSizuku/algorithm-MMCC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMCC


overlook

A mini make c compiler including

  • preprocessing
  • scanning (lexical analysis)
  • parsing (syntax analysis)
  • symantic analysis & icgen (intermediate code generation)

to compile a programe wrote by a subset of c language

code structures

  • algutil.h basic algrithms, including string processing, obtaining first, follow set
  • base.h declearation for all data struct, hash table
  • ioutil.h basic input or output, xml read and write
  • mmcc.cpp main project
  • pp.cpp preprocessing, fitter comment
  • scanning.cpp output .token.xml
  • parsing.cpp output .tree.xml
  • semantic.cpp output .ic.xml

details

  • The compiler's architecture detailed methods are in mmcc_design
  • The intermediate results for debug are in debug_view

About

A mini make c compiler.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages