GithubHelp home page GithubHelp logo

mnnucompiler's Introduction

闽南师范大学编译原理实验

本次项目是关于实验课程要求文法做的编译器

编译器主要分为三个部分:分析,生成,优化

本次先讲分析:

分析分为词法分析、语法分析、语义分析

code文件夹里放了分析器的程序源码,目前只有词法分析器

LEX.java为词法分析,识别六种数据类型,运算符;

数据类型:十六进制整、实数;十进制整、实数;八进制整、实数

运算符:+;-;*;/

本次词法分析为初代版本,为了满足快速上线的需求,没有做出错误数据报告以及没有识别"()"

2019年10月30日21点10分更新:
  1. 加入"()"的识别;

  2. 并且调整程序编码格式为"UTF-8";

  3. 修改词法分析器的入口main类名为LexProgram;

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.