Giter Site home page Giter Site logo

remysys / rbison Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 383 KB

rbison - a clear version of the GNU utility bison

License: GNU General Public License v2.0

Makefile 1.92% C 88.06% Lex 5.80% Yacc 4.22%
bison compiler compiler-construction parser parser-generator yacc

rbison's Introduction

rbison: a clear version of the GNU utility bison

rbison takes as input a context-free grammar specification and produces a LALR(1) parser that recognizes correct instances of the grammar. you can use it to develop a wide range of language parsers, from those used in simple calculators to complex programming languages.

rbison internals

Usage

$ cd src && make rbison
$ ./rbison 
rbison 0.01 [gcc 4.8.5] [Nov 19 2022]. (c) 2022, ****. all rights reserved.
usage is: rbison [-options] file

  create an LALR(1) parser from the specification in the
  input file. legal command-line options are:

-a   output actions only (see -p)
-l   suppress #(L)ine directives
-p   output parser only (can be used with -T also)
-s   make (s)ymbol table
-S   make more-complete (S)ymbol table
-t   print all (T)ables (and the parser) to standard output
-T   move large tables from y.tab.c to y.outab.c
-v   print (V)erbose diagnostics (including symbol table)
-V   more verbose than -v. implies -t, & y.output goes to stderr
-w   suppress all warning messages
-W   warnings (as well as errors) generate nonzero exit status

run 'make test' to compile the usage samples in the test directory

$ make test

rbison's People

Contributors

remysys avatar

Stargazers

Eason Wang avatar  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.