Skip to content

xiaolan98/compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

compiler

实现简单的编译器

词法分析

lexical analysis.h && lexical analysis.cpp

语法分析

递归下降法

结果展示成一棵树:

程序自动生成image.gv脚本,用graphviz生成树,imagefinal.png。

带有画树的程序在compiler with tree 文件夹里

compiler 文件夹里是总的程序 grammar analysis.h && grammar analysis.cpp

语义分析及目标代码生成

grammar analysis.h && grammar analysis.cpp

解释执行

interpreter.h && interprter.cpp

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages