Code Monkey home page Code Monkey logo

schemegen's Introduction

schemegen

Used to generate a subset of the scheme language. At this phase generated code is not syntactically correct.

forthebadge forthebadge

Usage:

  1. Clone into the directory with your project: git clone https://github.com/keegandonley/schemegen.git
  2. cd into the directory cd schemegen
  3. Run your executable: node ./index.js <path-to-executable> <lines-to-generate> <tokens-per-line>. For example: node ./index.js ../P1.out 10 10
  4. The output of your program will be displayed with randomly generated input!

To prevent the temporary output file from being cleared, run with the flag --p or -preserve. This can be used to debug the executable program because the input that was used is saved until the program is run again.

An example of generated code can be found in temp.ss.

Caveat: This program is only useful for testing a lexial analyzer for scheme - the generated code is not syntactically correct and won't yet work with a syntactic analyzer.

schemegen's People

Contributors

keegandonley avatar

Watchers

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