Skip to content

artoj/abi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Arto's Brainfuck Interpreter
Copyright (c) 2011 Arto Jonsson <[email protected]>

ABOUT

   Arto's Brainfuck Interpreter or Abi is a simple interpreter for the
   brainfuck programming language. It was created for learning the Lua
   language. The interpreter uses Lua's metatable system to allow arbitrary
   large memory space.

   More information about brainfuck: https://en.wikipedia.org/wiki/Brainfuck

USAGE

   The interpreter supports only two functions:

       new() -- create an interpreter instance
       do_string(s) -- interpret brainfuck code in string 's'

   Reading and writing is done using Lua's standard 'io:write' and 'io:read'
   functions.

   Hello World example:

        require 'abi'

        abi = Abi:new()
        abi:do_string("++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.")

About

A simple brainfuck interpreter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages