Giter Site home page Giter Site logo

tiny-plus-compiler's Introduction

TINY+ compiler

词法分析程序实验:

1.实验目的:通过扩充已有的样例语言TINY语言的词法分析程序,为扩展TINY语言TINY+构造词法分析程序,从而掌握词法分析程序的构造方法

2.实验内容:了解样例语言TINY及TINY编译器的实现,了解扩展TINY语言TINY+,用C语言在已有的TINY词法分析器基础上扩展,构造TINY+的词法分析程序

3.实验要求:将TINY+源程序翻译成对应的TOKEN序列,并能检查一定的词法错误

语法分析程序实验:

1.实验目的:通过扩展已有的样例语言TINY的语法分析程序,为扩展TINY语言TINY+构造语法分析程序,从而掌握语法分析程序的构造方法

2.实验内容:用EBNF描述TINY+的语法,用C语言扩展TINY的语法分析程序,构造TINY+的递归下降语法分析器

3.实验要求:将TOKEN序列转换成语法分析树,并能检查一定的语法错误

语义分析程序及中间代码生成实验

1.实验目的:构造TINY+的语义分析程序并生成中间代码

2.实验内容:构造符号表,用C语言扩展TINY的语义分析程序,构造TINY+的语义分析器,构造TINY+的中间代码生成器

3.实验要求:能检查一定的语义错误,将TINY+程序转换成三地址中间代码

tiny-plus-compiler's People

Contributors

konzem avatar

Stargazers

n4t3 avatar  avatar  avatar Artox avatar  avatar

Watchers

James Cloos avatar  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.