Giter VIP home page Giter VIP logo

compile-class's Introduction

编译原理实验

Author: Tingjun Li

Github Repository: https://github.com/BrianLTJ/compile-class

系统要求:

  • Windows
    • MinGW / MSYS2
    • gcc
    • flex
    • bison
  • Linux
    • gcc
    • flex
    • bison

预编译可执行文件信息

  • exp2/a.exe, exp3/a.exe

    编译平台: Windows 10 x64

    bash: MSYS2

    gcc: 6.3.0

    flex: 2.6.3

    bison: 3.0.4

  • exp2/a.out, exp3/a.out

    编译平台: Ubuntu 16.04 x64

    gcc:5.4.0

    flex: 2.6.0

    bison: 3.0.4

实验二

构建

$ flex exp2.l
$ gcc lex.yy.c

使用

(Linux)$ ./a.out test1.c
(Windows)> a.exe test1.c

识别的内容将会输出在终端/命令行中。

实验三

构建

$ bison exp3.y
$ flex exp3.l
$ gcc -lfl lex.yy.c

使用

(Linux)$ ./a.out test1.test.c
(Windows)> a.exe test1.test.c

识别的内容将输出在终端/命令行中。

compile-class's People

Contributors

brianltj avatar

Watchers

 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.