Giter Club home page Giter Club logo

compiler-design's Introduction

Compiler-Design

编译原理课—编译器设计

词法分析

词法分析器的功能是输入源程序,经过词法分析后,输出单词符号。先去除注释,之后进行单词的识别。考虑到这个词法分析比较简单,大概想法就是逐个读取字符,然后判断。下面这几个自动机和在一起也是确定的,所以逐个判断就可以了。

注释状态转移

图1.注释的状态转移图

标识符状态转移

p2 标识符状态转移

字符串状态转移图

字符串状态转移图

界符状态转换图

界符状态转换图

整数与浮点数

整数与浮点数

字符状态转移图

字符状态转移图

语法分析

语义分析

目标代码生成

log

  • 16.Oct.10 : 刚开始项目,正在写词法分析器。
  • 16.Oct.12 : 词法分析器已经有了思路,并实现了一部分,大概明天就可以完成了
  • 16.Oct.15 : 完成了实体类和文件工具类 语法分析的工具类写了一部分
  • 16.Oct.16 : 完成了语法分析的工具类, 正在写语法分析的主类

compiler-design's People

Contributors

rui-tang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.