GithubHelp home page GithubHelp logo

dahlitzflorian / learning-flex-bison Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 10 KB

This repository was created to keep track of my personal learning material for Flex and Bison.

License: Apache License 2.0

Shell 20.63% Roff 11.97% Yacc 57.95% Lex 9.44%
flex bison bison-grammar bison-yacc bison-example flex-bison education educational educational-materials

learning-flex-bison's Introduction

Learning Flex and Bison

Description

This repository was created to keep track of my personal learning material for Flex and Bison. The source code is provided in the src directory, the explanations and notes are stored inside the notes directory.

Build

You can generate the lexcial analyzer and the parser using the build script in the root directory. It expects exactly one parameter, which is the path to the lexical analyzer description. After hitting enter the script will delete the build directory if existing, generate a new one and save the lexical analyzer just there as well as the generated parser and the corresponding header file. Last but not least gcc will create an executable you can run afterwards.

Note: The build script was created for a MacOS system and may not work on other systems. Furthermore, be sure to have Flex and Bison installed!

Example

$ ./build.sh flex/binary.l
$ ./build/binary.exe
1101 + 10 * 11
 = 19

learning-flex-bison's People

Contributors

dahlitzflorian 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.