Giter Site home page Giter Site logo

austinwells / befungevm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wolfecub/befungevm

0.0 2.0 0.0 63 KB

A simple Befunge virtual machine

License: BSD 2-Clause "Simplified" License

C 67.90% Makefile 3.80% HyPhy 21.72% Brainfuck 2.32% Objective-C 3.39% Shell 0.86%

befungevm's Introduction

https://travis-ci.org/AustinWells/BefungeVM.svg?branch=master

Befunge VM

Befunge is a language created by Chris Pressey to be as difficult as possible to compile. It is a 2D reflective programming language. While creating a compiler may be intentially complicated a Befunge VM is reasonably simple to implement. This program is a very simple implementation. The main difference between this interpreter and standard interpreters is the grid is dynamically allocated rather than using a fixed size grid.

This VM

This VM was originally authored by Josh Wolfe(https://github.com/WolfeCub/BefungeVM) . The Main Differences in this fork are; The ability to pick which Stack to link against(speicifed in makefile), additional test and most importantly the dynamically sized stack implimentation.

Code examples

Hello world

64+"!dlroW ,olleH">:#,_@

Factorial

&>:1-:v v *_$.@ 
 ^    _$>\:^

Sieve of Eratosthenes

2>:3g" "-!v\  g30          <
 |!`"O":+1_:.:03p>03g+:"O"`|
 @               ^  p3\" ":<
2 234567890123456789012345678901234567890123456789012345678901234567890123456789

Quine

01->1# +# :# 0# g# ,# :# 5# 8# *# 4# +# -# _@

For more examples look here.

befungevm's People

Contributors

austinwells avatar wolfecub 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.