Skip to content

Latest commit

 

History

History
32 lines (32 loc) · 1.73 KB

README.md

File metadata and controls

32 lines (32 loc) · 1.73 KB

COMPILESTUDY

flex and bison for SysY language

A project for Compiling SysY Language.

1.Lexical Analyzer

generate token flow

  • manual c process

2.Syntax Analyzer

generate abstract syntax tree

  • manual java process

3.intermidiate code generator and optimizor

combine the semantic analyzer to it

  • ll_example
  • manual c process generate .ll file
  • lrparser BisonCodeGenerate/workout/main.c BisonCodeGenerate/workout/lrparser.tab.c BisonCodeGenerate/workout/lrparser.tab.h BisonCodeGenerate/workout/ast.c BisonCodeGenerate/workout/ast.h BisonCodeGenerate/workout/lex.yy.c BisonCodeGenerate/workout/genllvm.c BisonCodeGenerate/workout/genllvm.h BisonCodeGenerate/workout/hashMap.c BisonCodeGenerate/workout/hashMap.h BisonCodeGenerate/workout/list.c BisonCodeGenerate/workout/list.h