Giter Club home page Giter Club logo

bf-d8's Introduction

V8 powered BF

Running BF on V8 with D8.

Getting started

Install

  • Build V8
  • Setup D8 binary for use
    V8_REPO_LOCATION=~/v8 # example location
    alias d8="$V8_REPO_LOCATION/v8/out/x64.release/d8"
    export D8_PATH="$V8_REPO_LOCATION/v8/out/x64.release"

Usage

d8 src/run.js -- <program.b>

Included programs:

d8 src/run.js -- tests/hello-world.b
d8 src/run.js -- tests/mandelbrot.b

Testing

Single test:

PROGRAM=tests/hello-world
d8 src/run.js -- "${PROGRAM}.b" > output.txt && diff output.txt "${PROGRAM}.txt" && echo "\033[0;32mPass\033[0m" || echo "\033[0;31mFail\033[0m"

All tests:

find tests/*.b | grep -oP "(?<=/)[\-\w]+(?=.b)" | xargs -n 1 sh -c '<d8-executable-location> src/run.js -- tests/$0.b > output.txt && diff output.txt tests/$0.txt && echo Passed $0 test! || echo Failed $0 test!'

References

V8

BF

bf-d8's People

Contributors

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