Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johnbartholomew/brainfunc
A really bad brainfuck interpreter
https://github.com/johnbartholomew/brainfunc
Last synced: 30 days ago
JSON representation
A really bad brainfuck interpreter
- Host: GitHub
- URL: https://github.com/johnbartholomew/brainfunc
- Owner: johnbartholomew
- Created: 2011-11-13T02:53:58.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-12-01T20:32:09.000Z (almost 11 years ago)
- Last Synced: 2024-08-03T18:16:57.896Z (3 months ago)
- Language: C
- Homepage:
- Size: 128 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
- AwesomeInterpreter - brainfunc
README
brainfunc: a really bad brainfuck interpreter
=============================================Copyright (C) 2011, John Bartholomew
brainfunc compiles brainfuck code to bytecode and then interprets it.
It also extends the language to provide 'functions'.
Any functions must appear after the main body of the program
(nothing else makes sense syntactically, as you'll see...)A function starts with an identifier immediately followed by a colon
(no space or other characters are allowed between the identifier and
the colon). A function ends when you define another function, or when
the source code ends.An identifier not followed by a colon is a function call. Calls to a
function may appear before the function itself: function resolution
happens at the end of compilation.An identifier is matched by the expression ([a-zA-Z\_]\[a-zA-Z0-9\_]\*)
The '#' character is used as a line comment marker, causing all
further characters on that line to be ignored.By default, program source code size is limited to 1MB, and programs
run with a 1MB tape. To allow movement left, programs start half way
along the tape.The size limits can be changed by altering the #defines at the top
of this file.The need for function resolution means that all source code must be
available before the program begins execution (sorry about that).---- LICENSE ----
It is released under the Do What The Fuck You Want To Public License
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004Copyright (C) 2004 Sam Hocevar
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION0. You just DO WHAT THE FUCK YOU WANT TO.
---- WARRANTY ----
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the terms of the Do What The Fuck You Want
To Public License, Version 2, as listed above.# vim: set ts=8 sts=4 sw=4 et noai: