-
Notifications
You must be signed in to change notification settings - Fork 0
artoj/abi
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
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 0
No packages published