PageRenderTime 355ms queryTime 43ms sortTime 0ms getByIdsTime 105ms findMatchingLines 147ms

100+ results results for 'brainfuck' (355 ms)

Not the results you expected?
bfinterpreter.py https://github.com/TinnedTuna/gbf.git | Python | 159 lines
                    
5"""
                    
6    Brainfuck interpreter
                    
7
                    
35        """
                    
36            Preprocess the brainfuck
                    
37            
                    
55            if command in (">","<","+","-",".",",","#",):
                    
56                # Ignore all normal brainfuck characters.
                    
57                pass
                    
116        """
                    
117            Execute the cleaned brainfuck program
                    
118            
                    
126       """
                    
127           Do a single step in a brainfuck program
                    
128       """
                    
                
cond_test.py https://bitbucket.org/lifthrasiir/esotope-bfc | Python | 205 lines
                    
1# This is a part of Esotope Brainfuck Compiler.
                    
2
                    
                
Test.hx git://github.com/andyli/hxBF.git | Haxe | 146 lines
                    
1import hxBF.BrainFuck;
                    
2
                    
6/*
                    
7	Tests are from http://www.lordalcol.com/brainfuckjs/
                    
8*/
                    
30		var out = new BytesOutput();
                    
31		var bf = new BrainFuck(p, out).run();
                    
32		this.assertEquals("Hello World!\n", out.getBytes().toString());
                    
38		var out = new BytesOutput();
                    
39		var bf = new BrainFuck(p, new StringInput("3+2"), out).run();
                    
40		this.assertEquals("5", out.getBytes().toString());
                    
49		var out = new BytesOutput();
                    
50		var bf = new BrainFuck(p, new StringInput("2*4"), out).run();
                    
51		this.assertEquals("8", out.getBytes().toString());
                    
67		var out = new BytesOutput();
                    
68		var bf = new BrainFuck(p, new StringInput("6/2"), out).run();
                    
69		this.assertEquals("3", out.getBytes().toString());
                    
                
kkeys.e git://pkgs.fedoraproject.org/kBuild | Specman e | 410 lines
                    
81#endif
                    
82/* Fixing brainfucked slickedit silliness: */
                    
83def  'M-v'      = paste
                    
                
brainfuck.html https://repo.or.cz/zzandy.git | HTML | 211 lines
                    
7    <script type="text/javascript" src="script/util.js"></script>
                    
8    <title>Brainfuck</title>
                    
9</head>
                    
12    <div class="content header">
                    
13        <h1>Brainfuck</h1>
                    
14    </div>
                    
16    <div class="content">
                    
17        <p><a href="http://en.wikipedia.org/wiki/Brainfuck">Brainfuck</a> "IDE"</p>
                    
18        <a href="#" onclick="run(); return false;" id="runit" style="text-decoration: none">&#x25B6; Run</a><br/>
                    
                
prism.css https://github.com/Ronmi/ronmi.github.com.git | CSS | 239 lines
                    
1/* http://prismjs.com/download.html?themes=prism-okaidia&languages=markup+css+clike+javascript+abap+actionscript+apacheconf+apl+applescript+aspnet+autohotkey+bash+basic+bison+brainfuck+c+csharp+cpp+coffeescript+css-extras+d+dart+diff+docker+eiffel+elixir+erlang+fsharp+fortran+gherkin+git+glsl+go+groovy+haml+handlebars+haskell+http+inform7+ini+j+jade+java+julia+keyman+latex+less+lolcode+makefile+markdown+matlab+mel+mizar+monkey+nasm+nim+nsis+objectivec+ocaml+pascal+perl+php+php-extras+powershell+processing+prolog+pure+python+q+qore+r+jsx+rest+rip+ruby+rust+sas+sass+scss+scala+scheme+smalltalk+smarty+sql+stylus+swift+tcl+textile+twig+typescript+verilog+vhdl+wiki+yaml&plugins=line-highlight+line-numbers+file-highlight+show-language */
                    
2/**
                    
                
sunlight.default.css https://bitbucket.org/mulonemartin/powerpack/ | CSS | 335 lines
                    
292
                    
293/* brainfuck */
                    
294.sunlight-brainfuck {
                    
297}
                    
298.sunlight-brainfuck .sunlight-increment {
                    
299	background-color: #FF9900 !important;
                    
300}
                    
301.sunlight-brainfuck .sunlight-decrement {
                    
302	background-color: #FF99FF !important;
                    
303}
                    
304.sunlight-brainfuck .sunlight-incrementPointer {
                    
305	background-color: #FFFF99 !important;
                    
315}
                    
316.sunlight-brainfuck .sunlight-openLoop, .sunlight-brainfuck .sunlight-closeLoop {
                    
317	background-color: #FFFFFF !important;
                    
                
index.html git://github.com/imagecms/ImageCMS.git | HTML | 164 lines
                    
35      <li><a href="asterisk/index.html">Asterisk dialplan</a></li>
                    
36      <li><a href="brainfuck/index.html">Brainfuck</a></li>
                    
37      <li><a href="clike/index.html">C, C++, C#</a></li>
                    
                
BrainfuckCore.v git://github.com/whitequark/bfcpu2.git | V | 307 lines
                    
4
                    
5module BrainfuckCore(
                    
6	clk,
                    
218
                    
219module BrainfuckCoreTest;
                    
220	reg clk;
                    
234
                    
235	BrainfuckCore uut (
                    
236		.clk(clk),
                    
                
HaskFuck.hs git://github.com/alexsparrow/HaskFuck.git | Haskell | 193 lines
                    
1{-
                    
2Experimental (i.e. not working properly) brainfuck interpreter in Haskell
                    
3The test program below works but others may not
                    
19
                    
20-- Brainfuck program for testing purposes
                    
21test = unlines [
                    
44
                    
45-- Brainfuck command type
                    
46data Cmd = Next | Prev | Inc | Dec | Out | In | Start | End deriving Show
                    
52-- Shared environment
                    
53-- cmdStream : List of brainfuck commands in program
                    
54-- memArray  : Mutable array used for brainfuck memory
                    
69
                    
70-- Parse a single character into a BrainFuck command
                    
71-- Valid BF commands are wrapped with Just
                    
                
Makefile.am git://git.savannah.gnu.org/guile.git | Makefile | 245 lines
                    
32	    tests/bitvectors.test		\
                    
33	    tests/brainfuck.test		\
                    
34	    tests/bytevectors.test		\
                    
                
bfi.java https://github.com/songhead95/loonix.git | Java | 336 lines
                    
7
                    
8/** This class is a brainfuck interpreter written by Sven Stucki.<br>
                    
9 *  It lets you execute a bf program step-by-step for easy debugging or visualization or it can interpret the whole program at once.<br>
                    
21
                    
22	/** Output of the brainfuck programm goes here, default = System.out **/
                    
23	public PrintStream ps;  // Output stream
                    
23	public PrintStream ps;  // Output stream
                    
24	/** Input of the brainfuck programm is read from here, default = System.in **/
                    
25	public InputStream is;  // Input stream
                    
28	public int mp;          // Memory pointer
                    
29	/** This array represents the memory of the brainfuck program **/
                    
30	public int[] cell;      // Memory
                    
94
                    
95	/** Loads brainfuck program, filters every char not in the CHARS constant or after a \ out of the String **/
                    
96
                    
                
SimpleParser.cs https://ironbrainfuck.svn.codeplex.com/svn | C# | 360 lines
                    
5using System.Text.RegularExpressions;
                    
6using ZackFlame.SimpleBrainFuck.Core.Statments;
                    
7using ZackFlame.SimpleBrainFuck.TextResources;
                    
8
                    
9namespace ZackFlame.SimpleBrainFuck.Core
                    
10{
                    
                
bf2go.go git://github.com/creamdog/bf2go.git | Go | 161 lines
                    
8
                    
9type brainfuck struct {
                    
10	SourceFile *os.File
                    
22
                    
23	bf := &brainfuck{in,out,make([]byte,1),1,1,debug}
                    
24
                    
32
                    
33func (bf *brainfuck) initalizeOutputFile() {
                    
34	bf.DestFile.WriteString("package main\n")
                    
65
                    
66func (bf *brainfuck) finnishOutputFile() {
                    
67	bf.DestFile.WriteString("\twriter.Flush()\n")
                    
70
                    
71func (bf *brainfuck) ParseToken() {
                    
72	if _,err := bf.SourceFile.Read(bf.Token); err != nil {
                    
                
DreamTester.Designer.cs https://reflectivecs.svn.codeplex.com/svn | C# | 210 lines
                    
78            this.comboBox1.Items.AddRange(new object[] {
                    
79            "Brainfuck",
                    
80            "C++",
                    
                
hudvark.sh git://github.com/jimmyskull/Hudvark.git | Shell | 171 lines
                    
23versao=v1.0
                    
24STR_VERSAO="Hudvärk: Compilador brainfuck $versao\nPaulo Roberto Urio (Outubro 2011)"
                    
25
                    
                
cgbfi2.bf https://github.com/ryantenney/brainfuck.git | Brainfuck | 401 lines
                    
1Brainfuck Self Interpreter: by Clive Gifford
                    
2
                    
31
                    
32The input must consist of valid brainfuck code (to be interpreted) which
                    
33must always be followed by an exclamation mark and then any associated data
                    
39
                    
40The underlying brainfuck machine determines the possible range of values in
                    
41the data cell values and what happens if an attempt is made to go outside the
                    
                
bf.cpp https://github.com/herumi/xbyak.git | C++ | 211 lines
                    
11
                    
12class Brainfuck : public Xbyak::CodeGenerator {
                    
13public:
                    
24	}
                    
25	Brainfuck(std::istream& is) : CodeGenerator(100000)
                    
26	{
                    
197	try {
                    
198		Brainfuck bf(ifs);
                    
199		if (mode == 0) {
                    
                
base64.cc git://github.com/brainfucker/node-base64.git | C++ | 221 lines
                    
4 * @package base64
                    
5 * @link http://github.com/brainfucker/node-base64
                    
6 * @autor Oleg Illarionov <oleg@emby.ru>
                    
                
meta.js git://github.com/zotonic/zotonic.git | JavaScript | 197 lines
                    
18    {name: "Asterisk", mime: "text/x-asterisk", mode: "asterisk", file: /^extensions\.conf$/i},
                    
19    {name: "Brainfuck", mime: "text/x-brainfuck", mode: "brainfuck", ext: ["b", "bf"]},
                    
20    {name: "C", mime: "text/x-csrc", mode: "clike", ext: ["c", "h"]},
                    
                
meta.js git://github.com/alkacon/opencms-core.git | JavaScript | 220 lines
                    
18    {name: "Asterisk", mime: "text/x-asterisk", mode: "asterisk", file: /^extensions\.conf$/i},
                    
19    {name: "Brainfuck", mime: "text/x-brainfuck", mode: "brainfuck", ext: ["b", "bf"]},
                    
20    {name: "C", mime: "text/x-csrc", mode: "clike", ext: ["c", "h", "ino"]},
                    
                
compress.html git://github.com/alkacon/opencms-core.git | HTML | 339 lines
                    
118          <option value="http://codemirror.net/mode/asciiarmor/asciiarmor.js">asciiarmor.js</option>
                    
119          <option value="http://codemirror.net/mode/brainfuck/brainfuck.js">brainfuck.js</option>
                    
120          <option value="http://codemirror.net/mode/clike/clike.js">clike.js</option>
                    
                
SimpleCoder.cs https://ironbrainfuck.svn.codeplex.com/svn | C# | 107 lines
                    
6
                    
7namespace ZackFlame.SimpleBrainFuck.Core
                    
8{
                    
9    /// <summary>
                    
10    /// Представляет транслятор SimpleBrainFuck-программы в BrainFuck-код.
                    
11    /// </summary>
                    
22        /// <summary>
                    
23        /// Транслирует SimpleBrainFuck-программу в неоптимизированный BrainFuck-код.
                    
24        /// </summary>
                    
24        /// </summary>
                    
25        /// <param name="simpleCode">SimpleBrainFuck-программа.</param>
                    
26        /// <returns>BrainFuck-код.</returns>
                    
34            string brainCode = trimEmptyLines.Replace(
                    
35                translator.RenderBrainFuck(tree), "\n");
                    
36
                    
                
BFI.c git://github.com/rickardlindberg/brainfuck.git | C | 116 lines
                    
23 * Date:          2003-04-29
                    
24 * Description:   Interpreter for the Brainfuck Programming Language
                    
25 * License:       GPL
                    
25 * License:       GPL
                    
26 * Web page:      http://www.brainfuck.ca
                    
27 * Download:      http://www.brainfuck.ca/BFI.c
                    
27 * Download:      http://www.brainfuck.ca/BFI.c
                    
28 * Source Info:   http://www.brainfuck.ca/downloads.html
                    
29 * Latest Ver:    http://www.brainfuck.ca/downloads.html
                    
30 * Documentation: None
                    
31 * Help:          tom@brainfuck.ca
                    
32 * Developement:  tom@brainfuck.ca
                    
32 * Developement:  tom@brainfuck.ca
                    
33 * Bugs:          tom@brainfuck.ca
                    
34 * Maintainer:    Thomas Cort <tom@brainfuck.ca>
                    
                
compile-tree-il.scm git://git.savannah.gnu.org/guile.git | Scheme | 185 lines
                    
1;;; Brainfuck for GNU Guile
                    
2
                    
21
                    
22;; Brainfuck is a simple language that mostly mimics the operations of a
                    
23;; Turing machine. This file implements a compiler from Brainfuck to
                    
27
                    
28(define-module (language brainfuck compile-tree-il)
                    
29  #:use-module (system base pmatch)
                    
32
                    
33;; Compilation of Brainfuck is pretty straight-forward. For all of
                    
34;; brainfuck's instructions, there are basic representations in Tree-IL
                    
36;;
                    
37;; Brainfuck's pointer and data-tape are stored in the variables pointer and
                    
38;; tape, where tape is a vector of integer values initially set to zero.  Pointer
                    
48
                    
49;; This compiles a whole brainfuck program. This constructs a Tree-IL
                    
50;; code equivalent to Scheme code like this:
                    
                
Script.cs https://reflectivecs.svn.codeplex.com/svn | C# | 258 lines
                    
61            {
                    
62                case ScriptLanguage.Brainfuck:
                    
63                    break;
                    
                
MainForm.cs https://ironbrainfuck.svn.codeplex.com/svn | C# | 293 lines
                    
216            {
                    
217                SaveBrainFuck(brainFuckFileName);
                    
218            }
                    
220            {
                    
221                SaveBrainFuck(saveBrainFuckDialog.FileName);
                    
222            }
                    
228            {
                    
229                SaveBrainFuck(saveBrainFuckDialog.FileName);
                    
230            }
                    
234        {
                    
235            brainFuckInteractiveConsole1.RunCode(textEditorBrainFuck.Document.TextContent);
                    
236        }
                    
248                (isSavedCode ? Path.GetFileName(codeFileName) : MainFormText.File_UntitledFile) +
                    
249                (isSavedBrainFuck ? " - " + Path.GetFileName(brainFuckFileName) : string.Empty);
                    
250        }
                    
                
edit_area_full.js http://you.googlecode.com/svn/trunk/ | JavaScript | 39 lines
                    
1 function EAL(){var t=this;t.version="0.8.2";date=new Date();t.start_time=date.getTime();t.win="loading";t.error=false;t.baseURL="";t.template="";t.lang={};t.load_syntax={};t.syntax={};t.loadedFiles=[];t.waiting_loading={};t.scripts_to_load=[];t.sub_scripts_to_load=[];t.syntax_display_name={'basic':'Basic','brainfuck':'Brainfuck','c':'C','coldfusion':'Coldfusion','cpp':'CPP','css':'CSS','html':'HTML','java':'Java','js':'Javascript','pas':'Pascal','perl':'Perl','php':'Php','python':'Python','robotstxt':'Robots txt','ruby':'Ruby','sql':'SQL','tsql':'T-SQL','vb':'Visual Basic','xml':'XML'};t.resize=[];t.hidden={};t.default_settings={debug:false,smooth_selection:true,font_size:"10",font_family:"monospace",start_highlight:false,toolbar:"search,go_to_line,fullscreen,|,undo,redo,|,select_font,|,change_smooth_selection,highlight,reset_highlight,word_wrap,|,help",begin_toolbar:"",end_toolbar:"",is_multi_files:false,allow_resize:"both",show_line_colors:false,min_width:400,min_height:125,replace_tab_by_spaces:false,allow_toggle:true,language:"en",syntax:"",syntax_selection_allow:"basic,brainfuck,c,coldfusion,cpp,css,html,java,js,pas,perl,php,python,ruby,robotstxt,sql,tsql,vb,xml",display:"onload",max_undo:30,browsers:"known",plugins:"",gecko_spellcheck:false,fullscreen:false,is_editable:true,cursor_position:"begin",word_wrap:false,autocompletion:false,load_callback:"",save_callback:"",change_callback:"",submit_callback:"",EA_init_callback:"",EA_delete_callback:"",EA_load_callback:"",EA_unload_callback:"",EA_toggle_on_callback:"",EA_toggle_off_callback:"",EA_file_switch_on_callback:"",EA_file_switch_off_callback:"",EA_file_close_callback:""};t.advanced_buttons=[ ['new_document','newdocument.gif','new_document',false],['search','search.gif','show_search',false],['go_to_line','go_to_line.gif','go_to_line',false],['undo','undo.gif','undo',true],['redo','redo.gif','redo',true],['change_smooth_selection','smooth_selection.gif','change_smooth_selection_mode',true],['reset_highlight','reset_highlight.gif','resync_highlight',true],['highlight','highlight.gif','change_highlight',true],['help','help.gif','show_help',false],['save','save.gif','save',false],['load','load.gif','load',false],['fullscreen','fullscreen.gif','toggle_full_screen',false],['word_wrap','word_wrap.gif','toggle_word_wrap',true],['autocompletion','autocompletion.gif','toggle_autocompletion',true] ];t.set_browser_infos(t);if(t.isIE>=6||t.isGecko||(t.isWebKit&&!t.isSafari<3)||t.isOpera>=9||t.isCamino)t.isValidBrowser=true;
                    
2else t.isValidBrowser=false;t.set_base_url();for(var i=0;i<t.scripts_to_load.length;i++){setTimeout("eAL.load_script('"+t.baseURL+t.scripts_to_load[i]+".js');",1);t.waiting_loading[t.scripts_to_load[i]+".js"]=false;}t.add_event(window,"load",EAL.prototype.window_loaded);};EAL.prototype={has_error:function(){this.error=true;for(var i in EAL.prototype){EAL.prototype[i]=function(){};}},set_browser_infos:function(o){ua=navigator.userAgent;o.isWebKit=/WebKit/.test(ua);o.isGecko=!o.isWebKit&&/Gecko/.test(ua);o.isMac=/Mac/.test(ua);o.isIE=(navigator.appName=="Microsoft Internet Explorer");if(o.isIE){o.isIE=ua.replace(/^.*?MSIE\s+([0-9\.]+).*$/,"$1");if(o.isIE<6)o.has_error();}if(o.isOpera=(ua.indexOf('Opera')!=-1)){o.isOpera=ua.replace(/^.*?Opera.*?([0-9\.]+).*$/i,"$1");if(o.isOpera<9)o.has_error();o.isIE=false;}if(o.isFirefox=(ua.indexOf('Firefox')!=-1))o.isFirefox=ua.replace(/^.*?Firefox.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('Iceweasel')!=-1)o.isFirefox=ua.replace(/^.*?Iceweasel.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('GranParadiso')!=-1)o.isFirefox=ua.replace(/^.*?GranParadiso.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('BonEcho')!=-1)o.isFirefox=ua.replace(/^.*?BonEcho.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('SeaMonkey')!=-1)o.isFirefox=(ua.replace(/^.*?SeaMonkey.*?([0-9\.]+).*$/i,"$1"))+1;if(o.isCamino=(ua.indexOf('Camino')!=-1))o.isCamino=ua.replace(/^.*?Camino.*?([0-9\.]+).*$/i,"$1");if(o.isSafari=(ua.indexOf('Safari')!=-1))o.isSafari=ua.replace(/^.*?Version\/([0-9]+\.[0-9]+).*$/i,"$1");if(o.isChrome=(ua.indexOf('Chrome')!=-1)){o.isChrome=ua.replace(/^.*?Chrome.*?([0-9\.]+).*$/i,"$1");o.isSafari=false;}},window_loaded:function(){eAL.win="loaded";if(document.forms){for(var i=0;i<document.forms.length;i++){var form=document.forms[i];form.edit_area_replaced_submit=null;try{form.edit_area_replaced_submit=form.onsubmit;form.onsubmit="";}catch(e){}eAL.add_event(form,"submit",EAL.prototype.submit);eAL.add_event(form,"reset",EAL.prototype.reset);}}eAL.add_event(window,"unload",function(){for(var i in eAs){eAL.delete_instance(i);}});},init_ie_textarea:function(id){var a=document.getElementById(id);try{if(a&&typeof(a.focused)=="undefined"){a.focus();a.focused=true;a.selectionStart=a.selectionEnd=0;get_IE_selection(a);eAL.add_event(a,"focus",IE_textarea_focus);eAL.add_event(a,"blur",IE_textarea_blur);}}catch(ex){}},init:function(settings){var t=this,s=settings,i;if(!s["id"])t.has_error();if(t.error)return;if(eAs[s["id"]])t.delete_instance(s["id"]);for(i in t.default_settings){if(typeof(s[i])=="undefined")s[i]=t.default_settings[i];}if(s["browsers"]=="known"&&t.isValidBrowser==false){return;}if(s["begin_toolbar"].length>0)s["toolbar"]=s["begin_toolbar"]+","+s["toolbar"];if(s["end_toolbar"].length>0)s["toolbar"]=s["toolbar"]+","+s["end_toolbar"];s["tab_toolbar"]=s["toolbar"].replace(/ /g,"").split(",");s["plugins"]=s["plugins"].replace(/ /g,"").split(",");for(i=0;i<s["plugins"].length;i++){if(s["plugins"][i].length==0)s["plugins"].splice(i,1);}t.get_template();t.load_script(t.baseURL+"langs/"+s["language"]+".js");if(s["syntax"].length>0){s["syntax"]=s["syntax"].toLowerCase();t.load_script(t.baseURL+"reg_syntax/"+s["syntax"]+".js");}eAs[s["id"]]={"settings":s};eAs[s["id"]]["displayed"]=false;eAs[s["id"]]["hidden"]=false;t.start(s["id"]);},delete_instance:function(id){var d=document,fs=window.frames,span,iframe;eAL.execCommand(id,"EA_delete");if(fs["frame_"+id]&&fs["frame_"+id].editArea){if(eAs[id]["displayed"])eAL.toggle(id,"off");fs["frame_"+id].editArea.execCommand("EA_unload");}span=d.getElementById("EditAreaArroundInfos_"+id);if(span)span.parentNode.removeChild(span);iframe=d.getElementById("frame_"+id);if(iframe){iframe.parentNode.removeChild(iframe);try{delete fs["frame_"+id];}catch(e){}}delete eAs[id];},start:function(id){var t=this,d=document,f,span,father,next,html='',html_toolbar_content='',template,content,i;if(t.win!="loaded"){setTimeout("eAL.start('"+id+"');",50);return;}for(i in t.waiting_loading){if(t.waiting_loading[i]!="loaded"&&typeof(t.waiting_loading[i])!="function"){setTimeout("eAL.start('"+id+"');",50);return;}}if(!t.lang[eAs[id]["settings"]["language"]]||(eAs[id]["settings"]["syntax"].length>0&&!t.load_syntax[eAs[id]["settings"]["syntax"]])){setTimeout("eAL.start('"+id+"');",50);return;}if(eAs[id]["settings"]["syntax"].length>0)t.init_syntax_regexp();if(!d.getElementById("EditAreaArroundInfos_"+id)&&(eAs[id]["settings"]["debug"]||eAs[id]["settings"]["allow_toggle"])){span=d.createElement("span");span.id="EditAreaArroundInfos_"+id;if(eAs[id]["settings"]["allow_toggle"]){checked=(eAs[id]["settings"]["display"]=="onload")?"checked='checked'":"";html+="<div id='edit_area_toggle_"+i+"'>";html+="<input id='edit_area_toggle_checkbox_"+id+"' class='toggle_"+id+"' type='checkbox' onclick='eAL.toggle(\""+id+"\");' accesskey='e' "+checked+" />";html+="<label for='edit_area_toggle_checkbox_"+id+"'>{$toggle}</label></div>";}if(eAs[id]["settings"]["debug"])html+="<textarea id='edit_area_debug_"+id+"' spellcheck='off' style='z-index:20;width:100%;height:120px;overflow:auto;border:solid black 1px;'></textarea><br />";html=t.translate(html,eAs[id]["settings"]["language"]);span.innerHTML=html;father=d.getElementById(id).parentNode;next=d.getElementById(id).nextSibling;if(next==null)father.appendChild(span);
                    
                
PhutilPygmentsSyntaxHighlighter.php git://github.com/facebook/libphutil.git | PHP | 217 lines
                    
59      'axd' => 'aspx-vb',
                    
60      'b' => 'brainfuck',
                    
61      'bas' => 'vb.net',
                    
61      'bas' => 'vb.net',
                    
62      'bf' => 'brainfuck',
                    
63      'bmx' => 'blitzmax',
                    
                
layout.inc git://pkgs.fedoraproject.org/syslinux | Pascal | 172 lines
                    
81		section .rbfg		write nobits
                    
82RBFG_brainfuck:	resb 2048		; Bigger than an Ethernet packet...
                    
83%endif
                    
                
PortForwarderTEST.cs https://bfos.svn.codeplex.com/svn | C# | 70 lines
                    
5
                    
6namespace BrainFuckOS
                    
7{
                    
                
Info.plist.in https://gitlab.com/mcepl/gedit.git | Autoconf | 268 lines
                    
57				<string>bf</string>
                    
58				<string>brainfuck</string>
                    
59				<string>c</string>
                    
                
RefalRegressionTests.cs https://hg.codeplex.com/riftaddonstudio | C# | 183 lines
                    
129		[TestMethod]
                    
130		public void RefalTest_BrainfuckInterpreter()
                    
131		{
                    
131		{
                    
132			RunSampleAndCompareResults("brainfuck.ref", "brainfuck.txt");
                    
133		}
                    
                
UnitTests.hs git://github.com/rickardlindberg/brainfuck.git | Haskell | 40 lines
                    
1import Brainfuck
                    
2import Prelude hiding (Left, Right)
                    
                
BrainFuckInteractiveConsole.cs https://ironbrainfuck.svn.codeplex.com/svn | C# | 191 lines
                    
17    {
                    
18        const string StartText = "IronBrainFuck Interactive Console";
                    
19
                    
19
                    
20        BrainFuckMachine brainFuckMachine = new BrainFuckJIT();
                    
21        Thread brainFuckThread;
                    
30            InitializeComponent();
                    
31            this.Disposed += BrainFuckInteractiveConsole_Disposed;
                    
32            
                    
49            {
                    
50                brainFuckThread.Abort();
                    
51                running = false;
                    
156                    {
                    
157                        brainFuckMachine.Execute(brainFuckCode);
                    
158                    }
                    
                
_mapping.py https://bitbucket.org/activestate/komodo-3rdparty | Python | 156 lines
                    
23    'BooLexer': ('pygments.lexers.dotnet', 'Boo', ('boo',), ('*.boo',), ('text/x-boo',)),
                    
24    'BrainfuckLexer': ('pygments.lexers.other', 'Brainfuck', ('brainfuck', 'bf'), ('*.bf', '*.b'), ('application/x-brainfuck',)),
                    
25    'CLexer': ('pygments.lexers.compiled', 'C', ('c',), ('*.c', '*.h'), ('text/x-chdr', 'text/x-csrc')),
                    
                
Brainfuck.hs git://github.com/rickardlindberg/brainfuck.git | Haskell | 106 lines
                    
1module Brainfuck where
                    
2
                    
                
BFProcessor.java https://github.com/making/jbf.git | Java | 114 lines
                    
1package am.ik.brainfuck;
                    
2
                    
                
codemirror_languages.php git://github.com/claudehohl/Stikked.git | PHP | 576 lines
                    
186    'basic4gl' => 'Basic4GL',
                    
187    'bf' => 'Brainfuck',
                    
188    'bibtex' => 'BibTeX',
                    
                
highlight.clj git://github.com/Raynes/refheap.git | Clojure | 259 lines
                    
131              :exts #{"befunge"}}
                    
132   "Brainfuck" {:short "bf"
                    
133                :exts #{"bf"}}
                    
                
Makefile.am git://git.savannah.gnu.org/guile.git | Makefile | 449 lines
                    
75  $(ELISP_LANG_SOURCES)				\
                    
76  $(BRAINFUCK_LANG_SOURCES)			\
                    
77  $(LIB_SOURCES)				\
                    
176
                    
177BRAINFUCK_LANG_SOURCES =			\
                    
178  language/brainfuck/parse.scm			\
                    
178  language/brainfuck/parse.scm			\
                    
179  language/brainfuck/compile-scheme.scm		\
                    
180  language/brainfuck/compile-tree-il.scm	\
                    
180  language/brainfuck/compile-tree-il.scm	\
                    
181  language/brainfuck/spec.scm
                    
182
                    
                
BrainFuckInterpreterTEST.cs https://bfos.svn.codeplex.com/svn | C# | 158 lines
                    
5
                    
6namespace BrainFuckOS
                    
7{
                    
7{
                    
8    class BrainFuckInterpreter
                    
9    {
                    
14
                    
15        public BrainFuckInterpreter()
                    
16        {
                    
                
bf.el https://github.com/joelagnel/lisp.git | Emacs Lisp | 249 lines
                    
27;; a weird test-case is included.  A BrainFuck interpreter
                    
28;; written in BrainFuck compiled to emacs-lisp executing brainfuck code.
                    
29
                    
42(defun bf-slow (string)
                    
43  "The BrainFuck interpreter.
                    
44This function takes BrainFuck code in the STRING argument and interprets
                    
51(defun bf-execute (string)
                    
52  "BrainFuck interpreter.
                    
53This is a internal function which assumes the necessary variables for
                    
140  "A test for the BrainFuck compiler.
                    
141This function compiles a Brainfuck interpreter written in BrainFuck
                    
142to native emacs-lisp byte-code and execute the interpreter which itself
                    
143executes a simple brainfuck program.
                    
144NOTE: The BrainFuck interpreter written in BrainFuck is not written
                    
145by me."
                    
                
BrainFuck.java https://github.com/MatzeB/jFirm.git | Java | 242 lines
                    
1package example.BrainFuck;
                    
2
                    
28
                    
29public class BrainFuck {
                    
30	private static int DATA_SIZE = 1000;
                    
54
                    
55		/* create a new global array for the brainfuck data */
                    
56		PrimitiveType btype = new PrimitiveType(Mode.getBu());
                    
                
grammars.yml https://gitlab.com/kidaa/linguist.git | YAML | 542 lines
                    
123- source.viml
                    
124vendor/grammars/SublimeBrainfuck:
                    
125- source.bf
                    
                
edit_area_full.js git://github.com/thickpaddy/speck.git | JavaScript | 39 lines
                    
1 function EAL(){this.version="0.7.2.3";date=new Date();this.start_time=date.getTime();this.win="loading";this.error=false;this.baseURL="";this.template="";this.lang=new Object();this.load_syntax=new Object();this.syntax=new Object();this.loadedFiles=new Array();this.waiting_loading=new Object();this.scripts_to_load=new Array();this.sub_scripts_to_load=new Array();this.resize=new Array();this.hidden=new Object();this.default_settings={debug:false ,smooth_selection:true ,font_size:"10" ,font_family:"monospace" ,start_highlight:false ,autocompletion:false ,toolbar:"search,go_to_line,fullscreen,|,undo,redo,|,select_font,|,change_smooth_selection,highlight,reset_highlight,|,help" ,begin_toolbar:"" ,end_toolbar:"" ,is_multi_files:false ,allow_resize:"both" ,show_line_colors:false ,min_width:400 ,min_height:125 ,replace_tab_by_spaces:false ,allow_toggle:true ,language:"en" ,syntax:"" ,syntax_selection_allow:"basic,brainfuck,c,coldfusion,cpp,css,html,js,pas,perl,php,python,ruby,robotstxt,sql,tsql,vb,xml" ,display:"onload" ,max_undo:30 ,browsers:"known" ,plugins:"" ,gecko_spellcheck:false ,fullscreen:false ,is_editable:true ,wrap_text:false ,load_callback:"" ,save_callback:"" ,change_callback:"" ,submit_callback:"" ,EA_init_callback:"" ,EA_delete_callback:"" ,EA_load_callback:"" ,EA_unload_callback:"" ,EA_toggle_on_callback:"" ,EA_toggle_off_callback:"" ,EA_file_switch_on_callback:"" ,EA_file_switch_off_callback:"" ,EA_file_close_callback:"" };this.advanced_buttons=[ ['new_document','newdocument.gif','new_document',false],['search','search.gif','show_search',false],['go_to_line','go_to_line.gif','go_to_line',false],['undo','undo.gif','undo',true],['redo','redo.gif','redo',true],['change_smooth_selection','smooth_selection.gif','change_smooth_selection_mode',true],['reset_highlight','reset_highlight.gif','resync_highlight',true],['highlight','highlight.gif','change_highlight',true],['help','help.gif','show_help',false],['save','save.gif','save',false],['load','load.gif','load',false],['fullscreen','fullscreen.gif','toggle_full_screen',false],['autocompletion','autocompletion.gif','toggle_autocompletion',true] ];ua=navigator.userAgent;this.nav=new Object();this.nav['isMacOS']=(ua.indexOf('Mac OS')!=-1);this.nav['isIE']=(navigator.appName=="Microsoft Internet Explorer");if(this.nav['isIE']){this.nav['isIE']=ua.replace(/^.*?MSIE ([0-9\.]*).*$/,"$1");if(this.nav['isIE']<6)this.has_error();}if(this.nav['isNS']=ua.indexOf('Netscape/')!=-1){this.nav['isNS']=ua.substr(ua.indexOf('Netscape/')+9);if(this.nav['isNS']<8||!this.nav['isIE'])this.has_error();}if(this.nav['isOpera']=(ua.indexOf('Opera')!=-1)){this.nav['isOpera']=ua.replace(/^.*?Opera.*?([0-9\.]+).*$/i,"$1");if(this.nav['isOpera']<9)this.has_error();this.nav['isIE']=false;}this.nav['isGecko']=(ua.indexOf('Gecko')!=-1);if(this.nav['isFirefox'] =(ua.indexOf('Firefox')!=-1))this.nav['isFirefox']=ua.replace(/^.*?Firefox.*?([0-9\.]+).*$/i,"$1");if(this.nav['isIceweasel'] =(ua.indexOf('Iceweasel')!=-1))this.nav['isFirefox']=this.nav['isIceweasel']=ua.replace(/^.*?Iceweasel.*?([0-9\.]+).*$/i,"$1");if(this.nav['GranParadiso'] =(ua.indexOf('GranParadiso')!=-1))this.nav['isFirefox']=this.nav['isGranParadiso']=ua.replace(/^.*?GranParadiso.*?([0-9\.]+).*$/i,"$1");if(this.nav['BonEcho'] =(ua.indexOf('BonEcho')!=-1))this.nav['isFirefox']=this.nav['isBonEcho']=ua.replace(/^.*?BonEcho.*?([0-9\.]+).*$/i,"$1");if(this.nav['isCamino'] =(ua.indexOf('Camino')!=-1))this.nav['isCamino']=ua.replace(/^.*?Camino.*?([0-9\.]+).*$/i,"$1");if(this.nav['isChrome'] =(ua.indexOf('Chrome')!=-1))this.nav['isChrome']=ua.replace(/^.*?Chrome.*?([0-9\.]+).*$/i,"$1");if(this.nav['isSafari'] =(ua.indexOf('Safari')!=-1))this.nav['isSafari']=ua.replace(/^.*?Version\/([0-9]+\.[0-9]+).*$/i,"$1");if(this.nav['isIE']>=6||this.nav['isOpera']>=9||this.nav['isFirefox']||this.nav['isChrome']||this.nav['isCamino']||this.nav['isSafari']>=3)this.nav['isValidBrowser']=true;
                    
2else this.nav['isValidBrowser']=false;this.set_base_url();for(var i=0;i<this.scripts_to_load.length;i++){setTimeout("eAL.load_script('"+this.baseURL+this.scripts_to_load[i]+".js');",1);this.waiting_loading[this.scripts_to_load[i]+".js"]=false;}this.add_event(window,"load",EAL.prototype.window_loaded);};EAL.prototype ={has_error:function(){this.error=true;for(var i in EAL.prototype){EAL.prototype[i]=function(){};}},window_loaded:function(){eAL.win="loaded";if (document.forms){for (var i=0;i<document.forms.length;i++){var form=document.forms[i];form.edit_area_replaced_submit=null;try{form.edit_area_replaced_submit=form.onsubmit;form.onsubmit="";}catch (e){}eAL.add_event(form,"submit",EAL.prototype.submit);eAL.add_event(form,"reset",EAL.prototype.reset);}}eAL.add_event(window,"unload",function(){for(var i in eAs){eAL.delete_instance(i);}});},init_ie_textarea:function(id){var t=document.getElementById(id);try{if(t&&typeof(t.focused)=="undefined"){t.focus();t.focused=true;t.selectionStart=t.selectionEnd=0;get_IE_selection(t);eAL.add_event(t,"focus",IE_textarea_focus);eAL.add_event(t,"blur",IE_textarea_blur);}}catch(ex){}},init:function(settings){if(!settings["id"])this.has_error();if(this.error)return;if(eAs[settings["id"]])eAL.delete_instance(settings["id"]);for(var i in this.default_settings){if(typeof(settings[i])=="undefined")settings[i]=this.default_settings[i];}if(settings["browsers"]=="known"&&this.nav['isValidBrowser']==false){return;}if(settings["begin_toolbar"].length>0)settings["toolbar"]=settings["begin_toolbar"] +","+settings["toolbar"];if(settings["end_toolbar"].length>0)settings["toolbar"]=settings["toolbar"] +","+settings["end_toolbar"];settings["tab_toolbar"]=settings["toolbar"].replace(/ /g,"").split(",");settings["plugins"]=settings["plugins"].replace(/ /g,"").split(",");for(var i=0;i<settings["plugins"].length;i++){if(settings["plugins"][i].length==0)settings["plugins"].splice(i,1);}this.get_template();this.load_script(this.baseURL+"langs/"+settings["language"]+".js");if(settings["syntax"].length>0){settings["syntax"]=settings["syntax"].toLowerCase();this.load_script(this.baseURL+"reg_syntax/"+settings["syntax"]+".js");}eAs[settings["id"]]={"settings":settings};eAs[settings["id"]]["displayed"]=false;eAs[settings["id"]]["hidden"]=false;eAL.start(settings["id"]);},delete_instance:function(id){eAL.execCommand(id,"EA_delete");if(window.frames["frame_"+id]&&window.frames["frame_"+id].editArea){if(eAs[id]["displayed"])eAL.toggle(id,"off");window.frames["frame_"+id].editArea.execCommand("EA_unload");}var span=document.getElementById("EditAreaArroundInfos_"+id);if(span)span.parentNode.removeChild(span);var iframe=document.getElementById("frame_"+id);if(iframe){iframe.parentNode.removeChild(iframe);try{delete window.frames["frame_"+id];}catch (e){}}delete eAs[id];},start:function(id){if(this.win!="loaded"){setTimeout("eAL.start('"+id+"');",50);return;}for(var i in eAL.waiting_loading){if(eAL.waiting_loading[i]!="loaded"&&typeof(eAL.waiting_loading[i])!="function"){setTimeout("eAL.start('"+id+"');",50);return;}}if(!eAL.lang[eAs[id]["settings"]["language"]]||(eAs[id]["settings"]["syntax"].length>0&&!eAL.load_syntax[eAs[id]["settings"]["syntax"]])){setTimeout("eAL.start('"+id+"');",50);return;}if(eAs[id]["settings"]["syntax"].length>0)eAL.init_syntax_regexp();if(!document.getElementById("EditAreaArroundInfos_"+id)&&(eAs[id]["settings"]["debug"]||eAs[id]["settings"]["allow_toggle"])){var span=document.createElement("span");span.id="EditAreaArroundInfos_"+id;var html="";if(eAs[id]["settings"]["allow_toggle"]){checked=(eAs[id]["settings"]["display"]=="onload")?"checked":"";html+="<div id='edit_area_toggle_"+i+"'>";html+="<input id='edit_area_toggle_checkbox_"+id +"' class='toggle_"+id +"' type='checkbox' onclick='eAL.toggle(\""+id +"\");' accesskey='e' "+checked+" />";html+="<label for='edit_area_toggle_checkbox_"+id +"'>{$toggle}</label></div>";}if(eAs[id]["settings"]["debug"])html+="<textarea id='edit_area_debug_"+id +"' style='z-index:20;width:100%;height:120px;overflow:auto;border:solid black 1px;'></textarea><br />";html=eAL.translate(html,eAs[id]["settings"]["language"]);span.innerHTML=html;var father=document.getElementById(id).parentNode;var next=document.getElementById(id).nextSibling;if(next==null)father.appendChild(span);
                    
                
edit_area_full_with_plugins.js git://github.com/web2py/web2py.git | JavaScript | 41 lines
                    
1 function EAL(){var t=this;t.version="0.8.1.1";date=new Date();t.start_time=date.getTime();t.win="loading";t.error=false;t.baseURL="";t.template="";t.lang={};t.load_syntax={};t.syntax={};t.loadedFiles=[];t.waiting_loading={};t.scripts_to_load=[];t.sub_scripts_to_load=[];t.resize=[];t.hidden={};t.default_settings={debug:false,smooth_selection:true,font_size:"10",font_family:"monospace",start_highlight:false,toolbar:"search,go_to_line,fullscreen,|,undo,redo,|,select_font,|,change_smooth_selection,highlight,reset_highlight,word_wrap,|,help",begin_toolbar:"",end_toolbar:"",is_multi_files:false,allow_resize:"both",show_line_colors:false,min_width:400,min_height:125,replace_tab_by_spaces:false,allow_toggle:true,language:"en",syntax:"",syntax_selection_allow:"basic,brainfuck,c,coldfusion,cpp,css,html,java,js,pas,perl,php,python,ruby,robotstxt,sql,tsql,vb,xml",display:"onload",max_undo:30,browsers:"known",plugins:"",gecko_spellcheck:false,fullscreen:false,is_editable:true,cursor_position:"begin",word_wrap:false,autocompletion:false,load_callback:"",save_callback:"",change_callback:"",submit_callback:"",EA_init_callback:"",EA_delete_callback:"",EA_load_callback:"",EA_unload_callback:"",EA_toggle_on_callback:"",EA_toggle_off_callback:"",EA_file_switch_on_callback:"",EA_file_switch_off_callback:"",EA_file_close_callback:""};t.advanced_buttons=[ ['new_document','newdocument.gif','new_document',false],['search','search.gif','show_search',false],['go_to_line','go_to_line.gif','go_to_line',false],['undo','undo.gif','undo',true],['redo','redo.gif','redo',true],['change_smooth_selection','smooth_selection.gif','change_smooth_selection_mode',true],['reset_highlight','reset_highlight.gif','resync_highlight',true],['highlight','highlight.gif','change_highlight',true],['help','help.gif','show_help',false],['save','save.gif','save',false],['load','load.gif','load',false],['fullscreen','fullscreen.gif','toggle_full_screen',false],['word_wrap','word_wrap.gif','toggle_word_wrap',true],['autocompletion','autocompletion.gif','toggle_autocompletion',true] ];t.set_browser_infos(t);if(t.isIE>=6||t.isGecko||(t.isWebKit&&!t.isSafari<3)||t.isOpera>=9||t.isCamino)t.isValidBrowser=true;
                    
2else t.isValidBrowser=false;t.set_base_url();for(var i=0;i<t.scripts_to_load.length;i++){setTimeout("eAL.load_script('"+t.baseURL+t.scripts_to_load[i]+".js');",1);t.waiting_loading[t.scripts_to_load[i]+".js"]=false;}t.add_event(window,"load",EAL.prototype.window_loaded);};EAL.prototype={has_error:function(){this.error=true;for(var i in EAL.prototype){EAL.prototype[i]=function(){};}},set_browser_infos:function(o){ua=navigator.userAgent;o.isWebKit=/WebKit/.test(ua);o.isGecko=!o.isWebKit&&/Gecko/.test(ua);o.isMac=/Mac/.test(ua);o.isIE=(navigator.appName=="Microsoft Internet Explorer");if(o.isIE){o.isIE=ua.replace(/^.*?MSIE\s+([0-9\.]+).*$/,"$1");if(o.isIE<6)o.has_error();}if(o.isOpera=(ua.indexOf('Opera')!=-1)){o.isOpera=ua.replace(/^.*?Opera.*?([0-9\.]+).*$/i,"$1");if(o.isOpera<9)o.has_error();o.isIE=false;}if(o.isFirefox=(ua.indexOf('Firefox')!=-1))o.isFirefox=ua.replace(/^.*?Firefox.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('Iceweasel')!=-1)o.isFirefox=ua.replace(/^.*?Iceweasel.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('GranParadiso')!=-1)o.isFirefox=ua.replace(/^.*?GranParadiso.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('BonEcho')!=-1)o.isFirefox=ua.replace(/^.*?BonEcho.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('SeaMonkey')!=-1)o.isFirefox=(ua.replace(/^.*?SeaMonkey.*?([0-9\.]+).*$/i,"$1"))+1;if(o.isCamino=(ua.indexOf('Camino')!=-1))o.isCamino=ua.replace(/^.*?Camino.*?([0-9\.]+).*$/i,"$1");if(o.isSafari=(ua.indexOf('Safari')!=-1))o.isSafari=ua.replace(/^.*?Version\/([0-9]+\.[0-9]+).*$/i,"$1");if(o.isChrome=(ua.indexOf('Chrome')!=-1)){o.isChrome=ua.replace(/^.*?Chrome.*?([0-9\.]+).*$/i,"$1");o.isSafari=false;}},window_loaded:function(){eAL.win="loaded";if(document.forms){for(var i=0;i<document.forms.length;i++){var form=document.forms[i];form.edit_area_replaced_submit=null;try{form.edit_area_replaced_submit=form.onsubmit;form.onsubmit="";}catch(e){}eAL.add_event(form,"submit",EAL.prototype.submit);eAL.add_event(form,"reset",EAL.prototype.reset);}}eAL.add_event(window,"unload",function(){for(var i in eAs){eAL.delete_instance(i);}});},init_ie_textarea:function(id){var a=document.getElementById(id);try{if(a&&typeof(a.focused)=="undefined"){a.focus();a.focused=true;a.selectionStart=a.selectionEnd=0;get_IE_selection(a);eAL.add_event(a,"focus",IE_textarea_focus);eAL.add_event(a,"blur",IE_textarea_blur);}}catch(ex){}},init:function(settings){var t=this,s=settings,i;if(!s["id"])t.has_error();if(t.error)return;if(eAs[s["id"]])t.delete_instance(s["id"]);for(i in t.default_settings){if(typeof(s[i])=="undefined")s[i]=t.default_settings[i];}if(s["browsers"]=="known"&&t.isValidBrowser==false){return;}if(s["begin_toolbar"].length>0)s["toolbar"]=s["begin_toolbar"]+","+s["toolbar"];if(s["end_toolbar"].length>0)s["toolbar"]=s["toolbar"]+","+s["end_toolbar"];s["tab_toolbar"]=s["toolbar"].replace(/ /g,"").split(",");s["plugins"]=s["plugins"].replace(/ /g,"").split(",");for(i=0;i<s["plugins"].length;i++){if(s["plugins"][i].length==0)s["plugins"].splice(i,1);}t.get_template();t.load_script(t.baseURL+"langs/"+s["language"]+".js");if(s["syntax"].length>0){s["syntax"]=s["syntax"].toLowerCase();t.load_script(t.baseURL+"reg_syntax/"+s["syntax"]+".js");}eAs[s["id"]]={"settings":s};eAs[s["id"]]["displayed"]=false;eAs[s["id"]]["hidden"]=false;t.start(s["id"]);},delete_instance:function(id){var d=document,fs=window.frames,span,iframe;eAL.execCommand(id,"EA_delete");if(fs["frame_"+id]&&fs["frame_"+id].editArea){if(eAs[id]["displayed"])eAL.toggle(id,"off");fs["frame_"+id].editArea.execCommand("EA_unload");}span=d.getElementById("EditAreaArroundInfos_"+id);if(span)span.parentNode.removeChild(span);iframe=d.getElementById("frame_"+id);if(iframe){iframe.parentNode.removeChild(iframe);try{delete fs["frame_"+id];}catch(e){}}delete eAs[id];},start:function(id){var t=this,d=document,f,span,father,next,html='',html_toolbar_content='',template,content,i;if(t.win!="loaded"){setTimeout("eAL.start('"+id+"');",50);return;}for(i in t.waiting_loading){if(t.waiting_loading[i]!="loaded"&&typeof(t.waiting_loading[i])!="function"){setTimeout("eAL.start('"+id+"');",50);return;}}if(!t.lang[eAs[id]["settings"]["language"]]||(eAs[id]["settings"]["syntax"].length>0&&!t.load_syntax[eAs[id]["settings"]["syntax"]])){setTimeout("eAL.start('"+id+"');",50);return;}if(eAs[id]["settings"]["syntax"].length>0)t.init_syntax_regexp();if(!d.getElementById("EditAreaArroundInfos_"+id)&&(eAs[id]["settings"]["debug"]||eAs[id]["settings"]["allow_toggle"])){span=d.createElement("span");span.id="EditAreaArroundInfos_"+id;if(eAs[id]["settings"]["allow_toggle"]){checked=(eAs[id]["settings"]["display"]=="onload")?"checked='checked'":"";html+="<div id='edit_area_toggle_"+i+"'>";html+="<input id='edit_area_toggle_checkbox_"+id+"' class='toggle_"+id+"' type='checkbox' onclick='eAL.toggle(\""+id+"\");' accesskey='e' "+checked+" />";html+="<label for='edit_area_toggle_checkbox_"+id+"'>{$toggle}</label></div>";}if(eAs[id]["settings"]["debug"])html+="<textarea id='edit_area_debug_"+id+"' spellcheck='off' style='z-index:20;width:100%;height:120px;overflow:auto;border:solid black 1px;'></textarea><br />";html=t.translate(html,eAs[id]["settings"]["language"]);span.innerHTML=html;father=d.getElementById(id).parentNode;next=d.getElementById(id).nextSibling;if(next==null)father.appendChild(span);
                    
                
brians7.cpp https://github.com/misterque/gameofbrians.git | C++ | 396 lines
                    
43  string BNA;               	// the Brian N A, a string in extended
                    
44				// brainfuck syntax
                    
45
                    
118
                    
119// a function to generate extendend brainfuck commands
                    
120string GetToken() {
                    
182
                    
183// the brainfuck (extended) interpreter
                    
184// it interprets the following commands:
                    
197
                    
198void BrainFuck(Cell* Zelle){
                    
199  if(Zelle->ribopos == Zelle->BNA.size()) Zelle->ribopos = 0;
                    
379           // Feld[x][y].feld[n] = 0;
                    
380	  BrainFuck(&Feld[x][y]);
                    
381	}
                    
                
other.py https://bitbucket.org/birkenfeld/pygments-main/ | Python | 3341 lines
                    
25
                    
26__all__ = ['BrainfuckLexer', 'BefungeLexer', 'RedcodeLexer', 'MOOCodeLexer',
                    
27           'SmalltalkLexer', 'LogtalkLexer', 'GnuplotLexer', 'PovrayLexer',
                    
134
                    
135class BrainfuckLexer(RegexLexer):
                    
136    """
                    
136    """
                    
137    Lexer for the esoteric `BrainFuck <http://www.muppetlabs.com/~breadbox/bf/>`_
                    
138    language.
                    
140
                    
141    name = 'Brainfuck'
                    
142    aliases = ['brainfuck', 'bf']
                    
143    filenames = ['*.bf', '*.b']
                    
144    mimetypes = ['application/x-brainfuck']
                    
145
                    
                
_mapping.py https://bitbucket.org/birkenfeld/pygments-main/ | Python | 286 lines
                    
42    'BooLexer': ('pygments.lexers.dotnet', 'Boo', ('boo',), ('*.boo',), ('text/x-boo',)),
                    
43    'BrainfuckLexer': ('pygments.lexers.other', 'Brainfuck', ('brainfuck', 'bf'), ('*.bf', '*.b'), ('application/x-brainfuck',)),
                    
44    'BroLexer': ('pygments.lexers.other', 'Bro', ('bro',), ('*.bro',), ()),
                    
                
SemanticTree.cs https://ironbrainfuck.svn.codeplex.com/svn | C# | 243 lines
                    
6
                    
7namespace ZackFlame.SimpleBrainFuck.Core.Statments
                    
8{
                    
                
_mapping.py http://crunchy.googlecode.com/svn/trunk/ | Python | 218 lines
                    
37    'BooLexer': ('pygments3.lexers.dotnet', 'Boo', ('boo',), ('*.boo',), ('text/x-boo',)),
                    
38    'BrainfuckLexer': ('pygments3.lexers.other', 'Brainfuck', ('brainfuck', 'bf'), ('*.bf', '*.b'), ('application/x-brainfuck',)),
                    
39    'CLexer': ('pygments3.lexers.compiled', 'C', ('c',), ('*.c', '*.h'), ('text/x-chdr', 'text/x-csrc')),
                    
                
edit_area_crunchy.js http://crunchy.googlecode.com/svn/trunk/ | JavaScript | 747 lines
                    
17t.hidden={};
                    
18t.default_settings={debug:false,smooth_selection:true,font_size:"10",font_family:"monospace",start_highlight:false,toolbar:"search,go_to_line,fullscreen,|,undo,redo,|,select_font,|,change_smooth_selection,highlight,reset_highlight,word_wrap,|,help",begin_toolbar:"",end_toolbar:"",is_multi_files:false,allow_resize:"both",show_line_colors:false,min_width:400,min_height:125,replace_tab_by_spaces:false,allow_toggle:true,language:"en",syntax:"",syntax_selection_allow:"basic,brainfuck,c,coldfusion,cpp,css,html,java,js,pas,perl,php,python,ruby,robotstxt,sql,tsql,vb,xml",display:"onload",max_undo:30,browsers:"known",plugins:"",gecko_spellcheck:false,fullscreen:false,is_editable:true,cursor_position:"begin",word_wrap:false,autocompletion:false,load_callback:"",save_callback:"",change_callback:"",submit_callback:"",EA_init_callback:"",EA_delete_callback:"",EA_load_callback:"",EA_unload_callback:"",EA_toggle_on_callback:"",EA_toggle_off_callback:"",EA_file_switch_on_callback:"",EA_file_switch_off_callback:"",EA_file_close_callback:""};
                    
19t.advanced_buttons=[ ['new_document','newdocument.gif','new_document',false],['search','search.gif','show_search',false],['go_to_line','go_to_line.gif','go_to_line',false],['undo','undo.gif','undo',true],['redo','redo.gif','redo',true],['change_smooth_selection','smooth_selection.gif','change_smooth_selection_mode',true],['reset_highlight','reset_highlight.gif','resync_highlight',true],['highlight','highlight.gif','change_highlight',true],['help','help.gif','show_help',false],['save','save.gif','save',false],['load','load.gif','load',false],['fullscreen','fullscreen.gif','toggle_full_screen',false],['word_wrap','word_wrap.gif','toggle_word_wrap',true],['autocompletion','autocompletion.gif','toggle_autocompletion',true] ];
                    
                
UnitTests.hs git://github.com/rickardlindberg/brainfuck.git | Haskell | 51 lines
                    
1import Brainfuck
                    
2import Test.Hspec.HUnit
                    
                
config.c https://repo.or.cz/afunbrick.git | C | 194 lines
                    
15{
                    
16    config->std = STD_BRAINFUCK;
                    
17    config->print = false;
                    
40    if (0 == strcmp(arg, "bf")) {
                    
41        config->std = STD_BRAINFUCK;
                    
42    } else if (0 == strcmp(arg, "ook")) {
                    
44    } else if (0 == strcmp(arg, "bf++")) {
                    
45        config->std = STD_BRAINFUCKPP;
                    
46    } else if (0 == strcmp(arg, "bf--")) {
                    
46    } else if (0 == strcmp(arg, "bf--")) {
                    
47        config->std = STD_BRAINFUCKMM;
                    
48    } else if (0 == strcmp(arg, "*bf")) {
                    
48    } else if (0 == strcmp(arg, "*bf")) {
                    
49        config->std = STD_PTRBRAINFUCK;
                    
50    } else if (0 == strcmp(arg, "lcbf")) {
                    
                
README.md https://git.sr.ht/~humaid/yabfig/ | Markdown | 92 lines
                    
5
                    
6yabfig is a [BF](https://en.wikipedia.org/wiki/brainfuck) 
                    
7interpreter written in Go. It has also been extended to lint
                    
35Options:
                    
36	-lint		Lint (format) a Brainfuck file by removing spaces and non-instruction characters and output it to standard output.
                    
37	-debug		Run an interactive gdb-style debugger.
                    
45$ yabfig -debug programs/hello-world.bf
                    
46yabfig debugger for Brainfuck.
                    
47Commands are similar to gdb, type "help" for a list of compatible commands.
                    
                
main.cpp https://gitlab.com/brainfuck-interpreter/brainfuck-interpreter.git | C++ | 215 lines
                    
3 * PROGRAM:
                    
4 *   Brainfuck interpreter
                    
5 *
                    
16 * LICENSE:
                    
17 *   This software is (another) classical brainfuck interpreter, with errors handling and support of both stdin and source-file argument.
                    
18 *   Copyright (C) 2011  Théophile BASTIAN
                    
                
OokEngine.java git://github.com/clone1018/Shocky.git | Java | 210 lines
                    
1package org.faabtech.brainfuck.impl;
                    
2
                    
10 * The {@link OokEngine} is an implementation for the
                    
11 * <code>brainfuck<code> dialect
                    
12 * 	<code>Ook!</code>.
                    
                
PasteToWeb1.cpp http://miranda-dev.googlecode.com/svn/trunk/ | C++ | 394 lines
                    
50	{L"boo", L"BOO"},
                    
51	{L"bf", L"BrainFuck"},
                    
52	{L"c", L"C"},
                    
                
edit_area_loader.js git://github.com/alkacon/opencms-core.git | JavaScript | 1082 lines
                    
50		,syntax: ""
                    
51		,syntax_selection_allow: "basic,brainfuck,c,coldfusion,cpp,css,html,java,js,pas,perl,php,python,ruby,robotstxt,sql,tsql,vb,xml"
                    
52		,display: "onload" 		// onload or later
                    
                
bsd.hackage.mk git://github.com/freebsd-haskell/freebsd-haskell.git | Makefile | 620 lines
                    
62boxes_port=                                     devel/hs-boxes
                    
63brainfuck_port=                                 lang/hs-brainfuck                               # executable
                    
64bsd-sysctl_port=                                devel/hs-bsd-sysctl
                    
                
hashlib.cc git://github.com/brainfucker/hashlib.git | C++ | 359 lines
                    
4 * @package hashlib
                    
5 * @link http://github.com/brainfucker/hashlib
                    
6 * @autor Oleg Illarionov <oleg@emby.ru>
                    
                
SimpleTranslator.cs https://ironbrainfuck.svn.codeplex.com/svn | C# | 366 lines
                    
4using System.Text;
                    
5using ZackFlame.SimpleBrainFuck.Core.Statments;
                    
6using ZackFlame.SimpleBrainFuck.TextResources;
                    
7
                    
8namespace ZackFlame.SimpleBrainFuck.Core
                    
9{
                    
54
                    
55        public string RenderBrainFuck(IEnumerable<Statment> semanticTree)
                    
56        {
                    
                
Codex.cs https://reflectivecs.svn.codeplex.com/svn | C# | 114 lines
                    
71    {
                    
72        Brainfuck = 0,
                    
73        CPlusPlus = 1,
                    
87    {
                    
88        Brainfuck   = 0,
                    
89        IronPython  = 5,
                    
98    {
                    
99        Brainfuck        = 0,
                    
100        CPlusPlus        = 1,
                    
                
kbfi.bf https://github.com/ryantenney/brainfuck.git | Brainfuck | 62 lines
                    
1;; Keymaker's brainfuck interpreter
                    
2;; a brainfuck interpreter written in brainfuck
                    
3;; the memory cells can hold any value from zero to infinity
                    
                
parse.scm git://git.savannah.gnu.org/guile.git | Scheme | 96 lines
                    
1;;; Brainfuck for GNU Guile.
                    
2
                    
21
                    
22(define-module (language brainfuck parse)
                    
23  #:export (read-brainfuck))
                    
24
                    
25; Purpose of the parse module is to read in brainfuck in text form and produce
                    
26; the corresponding tree representing the brainfuck code.
                    
62
                    
63(define (read-brainfuck p)
                    
64  (let iterate ((parsed '()))
                    
79; corresponding instruction.  Loop bodies are read by recursively calling
                    
80; back (read-brainfuck).
                    
81;
                    
93    ((#\,) '(<bf-read>))
                    
94    ((#\[) `(<bf-loop> ,@(read-brainfuck p)))
                    
95    (else '(<bf-nop>))))
                    
                
BottlesOfBeerFitness.cs https://bitbucket.org/ryanboris/ai-programmer.git | C# | 213 lines
                    
19    /// In App.config:
                    
20    /// <add key="BrainfuckVersion" value="2"/>
                    
21    /// In Program.cs set:
                    
                
awib.bf git://github.com/FabianM/Brainfuck.git | Brainfuck | 968 lines
                    
7
                    
8Awib is a brainfuck compiler written in brainfuck. It is also polyglot
                    
9in bash, Tcl and C. It is optimizing and portable. Awib is capable of
                    
9in bash, Tcl and C. It is optimizing and portable. Awib is capable of
                    
10compiling brainfuck source code into Linux executables (i386) and five
                    
11programming languages: C, Tcl, Go, Ruby and Java.
                    
14
                    
15Project blog: http://awibiswritteninbrainfuck.blogspot.com/
                    
16Repository:   http://awib.googlecode.com/
                    
20
                    
21Feed awib brainfuck source code as input and the compiled program
                    
22will be written as output.
                    
83
                    
84Awib will run smoothly in any brainfuck environment where:
                    
85
                    
                
text.bf git://github.com/FabianM/Brainfuck.git | Brainfuck | 2520 lines
                    
1Written by Nathan van Doorn
                    
2[   https://github.com/ShockSoc/2016-brainfuck-submissions
                    
3    extra_hard_ascii1.bf
                    
                
lost-kingdom.bf git://github.com/FabianM/Brainfuck.git | Brainfuck | 13705 lines
                    
4# Author    : Jon Ripley
                    
5# Purpose   : Enchanced Brainfuck Edition of the original BBC BASIC game 
                    
6# Date      : Sun 12 Jun 2005 16:13:28
                    
                
other.py git://pkgs.fedoraproject.org/eric | Python | 2083 lines
                    
21
                    
22__all__ = ['SqlLexer', 'MySqlLexer', 'SqliteConsoleLexer', 'BrainfuckLexer',
                    
23           'BashLexer', 'BatchLexer', 'BefungeLexer', 'RedcodeLexer',
                    
258
                    
259class BrainfuckLexer(RegexLexer):
                    
260    """
                    
260    """
                    
261    Lexer for the esoteric `BrainFuck <http://www.muppetlabs.com/~breadbox/bf/>`_
                    
262    language.
                    
264
                    
265    name = 'Brainfuck'
                    
266    aliases = ['brainfuck', 'bf']
                    
267    filenames = ['*.bf', '*.b']
                    
268    mimetypes = ['application/x-brainfuck']
                    
269
                    
                
tpl_languages.html git://pkgs.fedoraproject.org/sticky-notes | HTML | 202 lines
                    
29    <option value="basic4gl">Basic4GL</option>
                    
30    <option value="bf">Brainfuck</option>
                    
31    <option value="bibtex">BibTeX</option>
                    
                
README.md git://github.com/FabianM/Brainfuck.git | Markdown | 80 lines
                    
1brainfuck
                    
2[![Build Status](https://github.com/fabianishere/brainfuck/workflows/Build/badge.svg)](https://github.com/fabianishere/brainfuck/actions?query=workflow%3ABuild)
                    
3===========
                    
6## Usage
                    
7    brainfuck [-veh] file...
                    
8	-e --eval	run code directly
                    
18#include <stdlib.h>
                    
19#include <brainfuck.h>
                    
20    
                    
22	BrainfuckState *state = brainfuck_state();
                    
23	BrainfuckExecutionContext *context = brainfuck_context(BRAINFUCK_TAPE_SIZE);
                    
24	BrainfuckInstruction *instruction = brainfuck_parse_string(",+++++.");
                    
24	BrainfuckInstruction *instruction = brainfuck_parse_string(",+++++.");
                    
25 	brainfuck_add(state, instruction);
                    
26 	brainfuck_execute(state->root, context);
                    
                
Program.cs https://ironbrainfuck.svn.codeplex.com/svn | C# | 131 lines
                    
7using System.Text;
                    
8using ZackFlame.IronBrainFuck.JIT;
                    
9
                    
9
                    
10namespace BrainFuckCompiler
                    
11{
                    
29                Console.WriteLine(string.Format(
                    
30                    "IronBrainFuck command-line compiler" +
                    
31                    "{0}" +
                    
31                    "{0}" +
                    
32                    "{0}Usage: {1} <brainFuckCodeFile> <outputPath>" +
                    
33                    "{0}e.g. {1} brain.bf c:\brain.exe",
                    
45                {
                    
46                    string brainFuckProgram = File.ReadAllText(args[0]);
                    
47                    CompileAndSave(brainFuckProgram, assemblyName, directory);
                    
                
CodeErrors.Designer.cs https://ironbrainfuck.svn.codeplex.com/svn | C# | 298 lines
                    
10
                    
11namespace ZackFlame.SimpleBrainFuck.TextResources {
                    
12    using System;
                    
41                if (object.ReferenceEquals(resourceMan, null)) {
                    
42                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ZackFlame.SimpleBrainFuck.TextResources.CodeErrors", typeof(CodeErrors).Assembly);
                    
43                    resourceMan = temp;
                    
                
ScalaStepDefinition.scala git://github.com/cucumber/cucumber-jvm.git | Scala | 86 lines
                    
46   * The source line where the step definition is defined.
                    
47   * Example: foo/bar/Zap.brainfuck:42
                    
48   *
                    
                
languages.yml https://gitlab.com/kidaa/linguist.git | YAML | 3736 lines
                    
347
                    
348Brainfuck:
                    
349  type: programming
                    
                
BrainAction.cs https://ironbrainfuck.svn.codeplex.com/svn | C# | 58 lines
                    
5
                    
6namespace ZackFlame.IronBrainFuck.Parser
                    
7{
                    
13        /// <summary>
                    
14        /// Тип команды в BrainFuck программе.
                    
15        /// </summary>
                    
25        /// </summary>
                    
26        /// <param name="operation">Тип команды в BrainFuck программе.</param>
                    
27        public BrainAction(BrainOperation operation)
                    
36        /// </summary>
                    
37        /// <param name="operation">Тип команд в BrainFuck программе.</param>
                    
38        /// <param name="value">
                    
                
Reverie.cs https://reflectivecs.svn.codeplex.com/svn | C# | 87 lines
                    
45        {
                    
46            if (language == Language.Brainfuck || language == Language.IronPython || language == Language.IronRuby
                    
47                || language == Language.JavaScript || language == Language.Lua)
                    
                
ideone.pl http://pbot2-pl.googlecode.com/svn/trunk/ | Perl | 800 lines
                    
33  'bc'                           => { 'id' =>  '110', 'name' => 'bc (bc-1.06.95)'                                  },
                    
34  'Brainfuck'                    => { 'id' =>   '12', 'name' => 'Brainf**k (bff-1.0.3.1)'                          },
                    
35  'bf'                           => { 'id' =>   '12', 'name' => 'Brainf**k (bff-1.0.3.1)'                          },
                    
                
edit_area_full_with_plugins.js http://ironpython.googlecode.com/svn/trunk/ | JavaScript | 40 lines
                    
1 function EAL(){this.version="0.7.1";date=new Date();this.start_time=date.getTime();this.win="loading";this.error=false;this.baseURL="";this.template="";this.lang=new Object();this.load_syntax=new Object();this.syntax=new Object();this.loadedFiles=new Array();this.waiting_loading=new Object();this.scripts_to_load=new Array();this.sub_scripts_to_load=new Array();this.resize=new Array();this.hidden=new Object();this.default_settings={debug: false ,smooth_selection: true ,font_size: "10" ,font_family: "monospace" ,start_highlight: false ,toolbar: "search, go_to_line, fullscreen, |, undo, redo, |, select_font,|, change_smooth_selection, highlight, reset_highlight, |, help" ,begin_toolbar: "" ,end_toolbar: "" ,is_multi_files: false ,allow_resize: "both" ,min_width: 400 ,min_height: 125 ,replace_tab_by_spaces: false ,allow_toggle: true ,language: "en" ,syntax: "" ,syntax_selection_allow: "basic,brainfuck,c,cpp,css,html,js,pas,php,python,ruby,sql,vb,xml" ,display: "onload" ,max_undo: 30 ,browsers: "known" ,plugins: "" ,gecko_spellcheck: false ,fullscreen: false ,is_editable: true ,load_callback: "" ,save_callback: "" ,change_callback: "" ,submit_callback: "" ,EA_init_callback: "" ,EA_delete_callback: "" ,EA_load_callback: "" ,EA_unload_callback: "" ,EA_toggle_on_callback: "" ,EA_toggle_off_callback: "" ,EA_file_switch_on_callback: "" ,EA_file_switch_off_callback: "" ,EA_file_close_callback: "" };this.advanced_buttons=[ ['new_document', 'newdocument.gif', 'new_document', false], ['search', 'search.gif', 'show_search', false], ['go_to_line', 'go_to_line.gif', 'go_to_line', false], ['undo', 'undo.gif', 'undo', true], ['redo', 'redo.gif', 'redo', true], ['change_smooth_selection', 'smooth_selection.gif', 'change_smooth_selection_mode', true], ['reset_highlight', 'reset_highlight.gif', 'resync_highlight', true], ['highlight', 'highlight.gif','change_highlight', true], ['help', 'help.gif', 'show_help', false], ['save', 'save.gif', 'save', false], ['load', 'load.gif', 'load', false], ['fullscreen', 'fullscreen.gif', 'toggle_full_screen', false] ];ua=navigator.userAgent;this.nav=new Object();this.nav['isMacOS']=(ua.indexOf('Mac OS') !=-1);this.nav['isIE']=(navigator.appName=="Microsoft Internet Explorer");if(this.nav['isIE']){this.nav['isIE']=ua.replace(/^.*?MSIE ([0-9\.]*).*$/, "$1");if(this.nav['isIE']<6) this.has_error();}if(this.nav['isNS']=ua.indexOf('Netscape/') !=-1){this.nav['isNS']=ua.substr(ua.indexOf('Netscape/')+9);if(this.nav['isNS']<8 || !this.nav['isIE']) this.has_error();}if(this.nav['isOpera']=(ua.indexOf('Opera') !=-1)){this.nav['isOpera']=ua.replace(/^.*?Opera.*?([0-9\.]+).*$/i, "$1");if(this.nav['isOpera']<9) this.has_error();this.nav['isIE']=false;}this.nav['isGecko']=(ua.indexOf('Gecko') !=-1);if(this.nav['isFirefox'] =(ua.indexOf('Firefox') !=-1)) this.nav['isFirefox']=ua.replace(/^.*?Firefox.*?([0-9\.]+).*$/i, "$1");if(this.nav['isIceweasel'] =(ua.indexOf('Iceweasel') !=-1)) this.nav['isFirefox']=this.nav['isIceweasel']=ua.replace(/^.*?Iceweasel.*?([0-9\.]+).*$/i, "$1");if(this.nav['isCamino'] =(ua.indexOf('Camino') !=-1)) this.nav['isCamino']=ua.replace(/^.*?Camino.*?([0-9\.]+).*$/i, "$1");if(this.nav['isSafari'] =(ua.indexOf('Safari') !=-1)) this.nav['isSafari']=ua.replace(/^.*?Version\/([0-9]+\.[0-9]+).*$/i, "$1");if(this.nav['isIE']>=6 || this.nav['isOpera']>=9 || this.nav['isFirefox'] || this.nav['isCamino'] || this.nav['isSafari']>=3) this.nav['isValidBrowser']=true;
                    
2else this.nav['isValidBrowser']=false;this.set_base_url();for(var i=0;i<this.scripts_to_load.length;i++){setTimeout("eAL.load_script('"+this.baseURL + this.scripts_to_load[i]+ ".js');", 1);this.waiting_loading[this.scripts_to_load[i]+ ".js"]=false;}this.add_event(window, "load", EAL.prototype.window_loaded);};EAL.prototype.has_error=function(){this.error=true;for(var i in EAL.prototype){EAL.prototype[i]=function(){};}};EAL.prototype.window_loaded=function(){eAL.win="loaded";if (document.forms){for (var i=0;i<document.forms.length;i++){var form=document.forms[i];form.edit_area_replaced_submit=null;try{form.edit_area_replaced_submit=form.onsubmit;form.onsubmit="";}catch (e){}eAL.add_event(form, "submit", EAL.prototype.submit);eAL.add_event(form, "reset", EAL.prototype.reset);}}eAL.add_event(window, "unload", function(){for(var i in eAs){eAL.delete_instance(i);}});};EAL.prototype.init_ie_textarea=function(id){textarea=document.getElementById(id);try{if(textarea && typeof(textarea.focused)=="undefined"){textarea.focus();textarea.focused=true;textarea.selectionStart=textarea.selectionEnd=0;get_IE_selection(textarea);eAL.add_event(textarea, "focus", IE_textarea_focus);eAL.add_event(textarea, "blur", IE_textarea_blur);}}catch(ex){}};EAL.prototype.init=function(settings){if(!settings["id"]) this.has_error();if(this.error) return;if(eAs[settings["id"]]) eAL.delete_instance(settings["id"]);for(var i in this.default_settings){if(typeof(settings[i])=="undefined") settings[i]=this.default_settings[i];}if(settings["browsers"]=="known" && this.nav['isValidBrowser']==false){return;}if(settings["begin_toolbar"].length>0) settings["toolbar"]=settings["begin_toolbar"] +","+ settings["toolbar"];if(settings["end_toolbar"].length>0) settings["toolbar"]=settings["toolbar"] +","+ settings["end_toolbar"];settings["tab_toolbar"]=settings["toolbar"].replace(/ /g,"").split(",");settings["plugins"]=settings["plugins"].replace(/ /g,"").split(",");for(var i=0;i<settings["plugins"].length;i++){if(settings["plugins"][i].length==0) settings["plugins"].splice(i,1);}this.get_template();this.load_script(this.baseURL + "langs/"+ settings["language"] + ".js");if(settings["syntax"].length>0){settings["syntax"]=settings["syntax"].toLowerCase();this.load_script(this.baseURL + "reg_syntax/"+ settings["syntax"] + ".js");}eAs[settings["id"]]={"settings": settings};eAs[settings["id"]]["displayed"]=false;eAs[settings["id"]]["hidden"]=false;eAL.start(settings["id"]);};EAL.prototype.delete_instance=function(id){eAL.execCommand(id, "EA_delete");if(window.frames["frame_"+id] && window.frames["frame_"+id].editArea){if(eAs[id]["displayed"]) eAL.toggle(id, "off");window.frames["frame_"+id].editArea.execCommand("EA_unload");}var span=document.getElementById("EditAreaArroundInfos_"+id);if(span){span.parentNode.removeChild(span);}var iframe=document.getElementById("frame_"+id);if(iframe){iframe.parentNode.removeChild(iframe);try{delete window.frames["frame_"+id];}catch (e){}}delete eAs[id];};EAL.prototype.start=function(id){if(this.win!="loaded"){setTimeout("eAL.start('"+id+"');", 50);return;}for(var i in eAL.waiting_loading){if(eAL.waiting_loading[i]!="loaded" && typeof(eAL.waiting_loading[i])!="function"){setTimeout("eAL.start('"+id+"');", 50);return;}}if(!eAL.lang[eAs[id]["settings"]["language"]] || (eAs[id]["settings"]["syntax"].length>0 && !eAL.load_syntax[eAs[id]["settings"]["syntax"]]) ){setTimeout("eAL.start('"+id+"');", 50);return;}if(eAs[id]["settings"]["syntax"].length>0) eAL.init_syntax_regexp();if(!document.getElementById("EditAreaArroundInfos_"+id) && (eAs[id]["settings"]["debug"] || eAs[id]["settings"]["allow_toggle"])){var span=document.createElement("span");span.id="EditAreaArroundInfos_"+id;var html="";if(eAs[id]["settings"]["allow_toggle"]){checked=(eAs[id]["settings"]["display"]=="onload")?"checked":"";html+="<div id='edit_area_toggle_"+i+"'>";html+="<input id='edit_area_toggle_checkbox_"+ id +"' class='toggle_"+ id +"' type='checkbox' onclick='eAL.toggle(\""+ id +"\");' accesskey='e' "+checked+" />";html+="<label for='edit_area_toggle_checkbox_"+ id +"'>{$toggle}</label></div>";}if(eAs[id]["settings"]["debug"]) html+="<textarea id='edit_area_debug_"+ id +"' style='z-index: 20;width: 100%;height: 120px;overflow: auto;border: solid black 1px;'></textarea><br />";html=eAL.translate(html, eAs[id]["settings"]["language"]);span.innerHTML=html;var father=document.getElementById(id).parentNode;var next=document.getElementById(id).nextSibling;if(next==null) father.appendChild(span);
                    
                
RuntimeErrors.Designer.cs https://ironbrainfuck.svn.codeplex.com/svn | C# | 82 lines
                    
10
                    
11namespace ZackFlame.SimpleBrainFuck.TextResources {
                    
12    using System;
                    
41                if (object.ReferenceEquals(resourceMan, null)) {
                    
42                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ZackFlame.SimpleBrainFuck.TextResources.RuntimeErrors", typeof(RuntimeErrors).Assembly);
                    
43                    resourceMan = temp;
                    
                
TrollScriptEngine.java git://github.com/clone1018/Shocky.git | Java | 209 lines
                    
1package org.faabtech.brainfuck.impl;
                    
2
                    
8
                    
9import org.faabtech.brainfuck.BrainfuckEngine;
                    
10
                    
12 * The {@link TrollScriptEngine} is an implementation for the
                    
13 * <code>brainfuck<code> dialect
                    
14 * 	<code>TrollScript</code>.
                    
17 */
                    
18public class TrollScriptEngine extends BrainfuckEngine {
                    
19
                    
                
fuckedinternet.md https://gitlab.com/Dinduks/evbogue.git | Markdown | 75 lines
                    
21
                    
22The real brainfuck of the whole thing is that you read that sentence and realized that the reason you're not important to me is the same reason why you're not on Bitmessage. You can't figure it out. If a person is the sum of the 15 people he hangs out with, why would I want to hang out with you? I'd be one-fifteenth less smart.
                    
23
                    
                
edit_area_full.js http://avecms.googlecode.com/svn/trunk/ | JavaScript | 39 lines
                    
1 function EAL(){var t=this;t.version="0.8.2";date=new Date();t.start_time=date.getTime();t.win="loading";t.error=false;t.baseURL="";t.template="";t.lang={};t.load_syntax={};t.syntax={};t.loadedFiles=[];t.waiting_loading={};t.scripts_to_load=[];t.sub_scripts_to_load=[];t.syntax_display_name={'coldfusion':'Coldfusion','php':'Php','html':'HTML','js':'Javascript','xml':'XML','perl':'Perl','sql':'SQL','pas':'Pascal','tsql':'T-SQL','java':'Java','python':'Python','basic':'Basic','ruby':'Ruby','brainfuck':'Brainfuck','c':'C','robotstxt':'Robots txt','cpp':'CPP','css':'CSS','vb':'Visual Basic'};t.resize=[];t.hidden={};t.default_settings={debug:false,smooth_selection:true,font_size:"10",font_family:"monospace",start_highlight:false,toolbar:"search,go_to_line,fullscreen,|,undo,redo,|,select_font,|,change_smooth_selection,highlight,reset_highlight,word_wrap,|,help",begin_toolbar:"",end_toolbar:"",is_multi_files:false,allow_resize:"both",show_line_colors:false,min_width:400,min_height:125,replace_tab_by_spaces:false,allow_toggle:true,language:"en",syntax:"",syntax_selection_allow:"basic,brainfuck,c,coldfusion,cpp,css,html,java,js,pas,perl,php,python,ruby,robotstxt,sql,tsql,vb,xml",display:"onload",max_undo:30,browsers:"known",plugins:"",gecko_spellcheck:false,fullscreen:false,is_editable:true,cursor_position:"begin",word_wrap:false,autocompletion:false,load_callback:"",save_callback:"",change_callback:"",submit_callback:"",EA_init_callback:"",EA_delete_callback:"",EA_load_callback:"",EA_unload_callback:"",EA_toggle_on_callback:"",EA_toggle_off_callback:"",EA_file_switch_on_callback:"",EA_file_switch_off_callback:"",EA_file_close_callback:""};t.advanced_buttons=[ ['new_document','newdocument.gif','new_document',false],['search','search.gif','show_search',false],['go_to_line','go_to_line.gif','go_to_line',false],['undo','undo.gif','undo',true],['redo','redo.gif','redo',true],['change_smooth_selection','smooth_selection.gif','change_smooth_selection_mode',true],['reset_highlight','reset_highlight.gif','resync_highlight',true],['highlight','highlight.gif','change_highlight',true],['help','help.gif','show_help',false],['save','save.gif','save',false],['load','load.gif','load',false],['fullscreen','fullscreen.gif','toggle_full_screen',false],['word_wrap','word_wrap.gif','toggle_word_wrap',true],['autocompletion','autocompletion.gif','toggle_autocompletion',true] ];t.set_browser_infos(t);if(t.isIE>=6||t.isGecko||(t.isWebKit&&!t.isSafari<3)||t.isOpera>=9||t.isCamino)t.isValidBrowser=true;
                    
2else t.isValidBrowser=false;t.set_base_url();for(var i=0;i<t.scripts_to_load.length;i++){setTimeout("eAL.load_script('"+t.baseURL+t.scripts_to_load[i]+".js');",1);t.waiting_loading[t.scripts_to_load[i]+".js"]=false;}t.add_event(window,"load",EAL.prototype.window_loaded);};EAL.prototype={has_error:function(){this.error=true;for(var i in EAL.prototype){EAL.prototype[i]=function(){};}},set_browser_infos:function(o){ua=navigator.userAgent;o.isWebKit=/WebKit/.test(ua);o.isGecko=!o.isWebKit&&/Gecko/.test(ua);o.isMac=/Mac/.test(ua);o.isIE=(navigator.appName=="Microsoft Internet Explorer");if(o.isIE){o.isIE=ua.replace(/^.*?MSIE\s+([0-9\.]+).*$/,"$1");if(o.isIE<6)o.has_error();}if(o.isOpera=(ua.indexOf('Opera')!=-1)){o.isOpera=ua.replace(/^.*?Opera.*?([0-9\.]+).*$/i,"$1");if(o.isOpera<9)o.has_error();o.isIE=false;}if(o.isFirefox=(ua.indexOf('Firefox')!=-1))o.isFirefox=ua.replace(/^.*?Firefox.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('Iceweasel')!=-1)o.isFirefox=ua.replace(/^.*?Iceweasel.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('GranParadiso')!=-1)o.isFirefox=ua.replace(/^.*?GranParadiso.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('BonEcho')!=-1)o.isFirefox=ua.replace(/^.*?BonEcho.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('SeaMonkey')!=-1)o.isFirefox=(ua.replace(/^.*?SeaMonkey.*?([0-9\.]+).*$/i,"$1"))+1;if(o.isCamino=(ua.indexOf('Camino')!=-1))o.isCamino=ua.replace(/^.*?Camino.*?([0-9\.]+).*$/i,"$1");if(o.isSafari=(ua.indexOf('Safari')!=-1))o.isSafari=ua.replace(/^.*?Version\/([0-9]+\.[0-9]+).*$/i,"$1");if(o.isChrome=(ua.indexOf('Chrome')!=-1)){o.isChrome=ua.replace(/^.*?Chrome.*?([0-9\.]+).*$/i,"$1");o.isSafari=false;}},window_loaded:function(){eAL.win="loaded";if(document.forms){for(var i=0;i<document.forms.length;i++){var form=document.forms[i];form.edit_area_replaced_submit=null;try{form.edit_area_replaced_submit=form.onsubmit;form.onsubmit="";}catch(e){}eAL.add_event(form,"submit",EAL.prototype.submit);eAL.add_event(form,"reset",EAL.prototype.reset);}}eAL.add_event(window,"unload",function(){for(var i in eAs){eAL.delete_instance(i);}});},init_ie_textarea:function(id){var a=document.getElementById(id);try{if(a&&typeof(a.focused)=="undefined"){a.focus();a.focused=true;a.selectionStart=a.selectionEnd=0;get_IE_selection(a);eAL.add_event(a,"focus",IE_textarea_focus);eAL.add_event(a,"blur",IE_textarea_blur);}}catch(ex){}},init:function(settings){var t=this,s=settings,i;if(!s["id"])t.has_error();if(t.error)return;if(eAs[s["id"]])t.delete_instance(s["id"]);for(i in t.default_settings){if(typeof(s[i])=="undefined")s[i]=t.default_settings[i];}if(s["browsers"]=="known"&&t.isValidBrowser==false){return;}if(s["begin_toolbar"].length>0)s["toolbar"]=s["begin_toolbar"]+","+s["toolbar"];if(s["end_toolbar"].length>0)s["toolbar"]=s["toolbar"]+","+s["end_toolbar"];s["tab_toolbar"]=s["toolbar"].replace(/ /g,"").split(",");s["plugins"]=s["plugins"].replace(/ /g,"").split(",");for(i=0;i<s["plugins"].length;i++){if(s["plugins"][i].length==0)s["plugins"].splice(i,1);}t.get_template();t.load_script(t.baseURL+"langs/"+s["language"]+".js");if(s["syntax"].length>0){s["syntax"]=s["syntax"].toLowerCase();t.load_script(t.baseURL+"reg_syntax/"+s["syntax"]+".js");}eAs[s["id"]]={"settings":s};eAs[s["id"]]["displayed"]=false;eAs[s["id"]]["hidden"]=false;t.start(s["id"]);},delete_instance:function(id){var d=document,fs=window.frames,span,iframe;eAL.execCommand(id,"EA_delete");if(fs["frame_"+id]&&fs["frame_"+id].editArea){if(eAs[id]["displayed"])eAL.toggle(id,"off");fs["frame_"+id].editArea.execCommand("EA_unload");}span=d.getElementById("EditAreaArroundInfos_"+id);if(span)span.parentNode.removeChild(span);iframe=d.getElementById("frame_"+id);if(iframe){iframe.parentNode.removeChild(iframe);try{delete fs["frame_"+id];}catch(e){}}delete eAs[id];},start:function(id){var t=this,d=document,f,span,father,next,html='',html_toolbar_content='',template,content,i;if(t.win!="loaded"){setTimeout("eAL.start('"+id+"');",50);return;}for(i in t.waiting_loading){if(t.waiting_loading[i]!="loaded"&&typeof(t.waiting_loading[i])!="function"){setTimeout("eAL.start('"+id+"');",50);return;}}if(!t.lang[eAs[id]["settings"]["language"]]||(eAs[id]["settings"]["syntax"].length>0&&!t.load_syntax[eAs[id]["settings"]["syntax"]])){setTimeout("eAL.start('"+id+"');",50);return;}if(eAs[id]["settings"]["syntax"].length>0)t.init_syntax_regexp();if(!d.getElementById("EditAreaArroundInfos_"+id)&&(eAs[id]["settings"]["debug"]||eAs[id]["settings"]["allow_toggle"])){span=d.createElement("span");span.id="EditAreaArroundInfos_"+id;if(eAs[id]["settings"]["allow_toggle"]){checked=(eAs[id]["settings"]["display"]=="onload")?"checked='checked'":"";html+="<div id='edit_area_toggle_"+i+"'>";html+="<input id='edit_area_toggle_checkbox_"+id+"' class='toggle_"+id+"' type='checkbox' onclick='eAL.toggle(\""+id+"\");' accesskey='e' "+checked+" />";html+="<label for='edit_area_toggle_checkbox_"+id+"'>{$toggle}</label></div>";}if(eAs[id]["settings"]["debug"])html+="<textarea id='edit_area_debug_"+id+"' spellcheck='off' style='z-index:20;width:100%;height:120px;overflow:auto;border:solid black 1px;'></textarea><br />";html=t.translate(html,eAs[id]["settings"]["language"]);span.innerHTML=html;father=d.getElementById(id).parentNode;next=d.getElementById(id).nextSibling;if(next==null)father.appendChild(span);
                    
                
edit_area_full_with_plugins.js http://avecms.googlecode.com/svn/trunk/ | JavaScript | 5099 lines
                    
45	t.sub_scripts_to_load= [];
                    
46	t.syntax_display_name= { 'basic':'Basic','brainfuck':'Brainfuck','c':'C','coldfusion':'Coldfusion','cpp':'CPP','css':'CSS','html':'HTML','java':'Java','js':'Javascript','pas':'Pascal','perl':'Perl','php':'Php','python':'Python','robotstxt':'Robots txt','ruby':'Ruby','sql':'SQL','tsql':'T-SQL','vb':'Visual Basic','xml':'XML' };
                    
47	
                    
69		,syntax: ""
                    
70		,syntax_selection_allow: "basic,brainfuck,c,coldfusion,cpp,css,html,java,js,pas,perl,php,python,ruby,robotstxt,sql,tsql,vb,xml"
                    
71		,display: "onload" 		// onload or later
                    
                
uploads.sql https://github.com/barbie/cpan-testers-www-statistics.git | SQL | 63 lines
                    
44INSERT INTO uploads ( type, author, dist, version, filename, released ) VALUES ('cpan','JBRYAN','AI-NeuralNet-Mesh','0.20','AI-NeuralNet-Mesh-0.20.zip','967009309');
                    
45INSERT INTO uploads ( type, author, dist, version, filename, released ) VALUES ('backpan','JALDHAR','Acme-Brainfuck','1.1.0','Acme-Brainfuck-1.1.0.tar.gz','1081229428');
                    
46INSERT INTO uploads ( type, author, dist, version, filename, released ) VALUES ('cpan','JALDHAR','Acme-Brainfuck','1.1.1','Acme-Brainfuck-1.1.1.tar.gz','1081268735');
                    
46INSERT INTO uploads ( type, author, dist, version, filename, released ) VALUES ('cpan','JALDHAR','Acme-Brainfuck','1.1.1','Acme-Brainfuck-1.1.1.tar.gz','1081268735');
                    
47INSERT INTO uploads ( type, author, dist, version, filename, released ) VALUES ('backpan','JALDHAR','Acme-Brainfuck','1.0.0','Acme-Brainfuck-1.0.0.tar.gz','1031080554');
                    
48INSERT INTO uploads ( type, author, dist, version, filename, released ) VALUES ('cpan','JHARDING','AOL-TOC','0.32','AOL-TOC-0.32.tar.gz','962207388');
                    
                
edit_area_loader.js https://xsltdb.svn.codeplex.com/svn | JavaScript | 1067 lines
                    
51		, syntax: ""
                    
52		, syntax_selection_allow: "basic,brainfuck,c,coldfusion,cpp,css,html,java,js,pas,perl,php,python,ruby,robotstxt,sql,tsql,vb,xml"
                    
53		, display: "onload" 		// onload or later
                    
                
BrainFuck.hs git://github.com/jkramer/brainfuck.git | Haskell | 96 lines
                    
17
                    
18-- Execute the brainfuck code from a string.
                    
19execute runTime "" = return runTime
                    
                
bfi_old_no_time.c http://dlemos-src.googlecode.com/svn/trunk/ | C | 140 lines
                    
1/* BrainFuck machine whith jumps, and repetitions assigned by a number */
                    
2
                    
                
BrainFuck.scala git://github.com/yuroyoro/esoteric-languages-on-scala.git | Scala | 146 lines
                    
1package com.yuroyoro.esoteric.brainfuck
                    
2
                    
8
                    
9object BrainFuck {
                    
10  import scala.util.parsing.input.{Position, NoPosition}
                    
126    def instruction :Parser[Op] = loop | token | commentOp
                    
127    def brainfuck   :Parser[Runtime] = rep(instruction) ^^ {op => new Runtime(op, size, maxLoop) }
                    
128    def prog = brainfuck
                    
                
controller.php https://bitbucket.org/remolaubacher/concrete5-syntax-highlighter.git | PHP | 174 lines
                    
31            'basic4gl' => 'Basic4GL',
                    
32            'bf' => 'Brainfuck',
                    
33            'blitzbasic' => 'BlitzBasic',
                    
                
README.md https://github.com/bartbes/Fetus.git | Markdown | 49 lines
                    
1#Fetus#
                    
2Fetus is a VM for running Fetus bytecode, this is accompanied by the Fetus language, Fetoid, and their compilers. There is even an experimental, and probably horribly broken, Brainfuck compiler.
                    
3
                    
33###Brainfuck###
                    
34A simple brainfuck compiler is included, it *should* all work, but it has not been tested thoroughly. Because brainfuck has a very loose specification, it is very possible that existing (advanced) brainfuck code won't work.
                    
35
                    
38
                    
39* brainfuck - A script that compiles and runs a Brainfuck program.
                    
40* brainfuck_c - The Brainfuck compiler.
                    
                
000968.html git://github.com/bjdean/cambridge-pm-website.git | HTML | 106 lines
                    
86-- 
                    
87Brainfuck better than perl?	<A HREF="http://www.perl.org/advocacy/spoofathon/">http://www.perl.org/advocacy/spoofathon/</A>
                    
88
                    
                
brainfuck_vm.d git://github.com/koko1000ban/brainfuck_d.git | D | 101 lines
                    
86  if (args.length == 1) {
                    
87    writef("usage: %s <SOURCE FILE>\n",  "brainfuck_vm.d");
                    
88    return 1;
                    
                
Brainfuck.hs git://github.com/rickardlindberg/brainfuck.git | Haskell | 158 lines
                    
1module Brainfuck where
                    
2
                    
80
                    
81-- The brainfuck code
                    
82
                    
                
bf.c https://code.google.com/p/code-fragment/ | C | 151 lines
                    
1/*
                    
2 * A nive brainfuck interpreter.
                    
3 */
                    
                
BrainCompiler.cs https://ironbrainfuck.svn.codeplex.com/svn | C# | 173 lines
                    
7using System.Text;
                    
8using ZackFlame.IronBrainFuck.Parser;
                    
9
                    
9
                    
10namespace ZackFlame.IronBrainFuck.JIT
                    
11{
                    
44        /// </param>
                    
45        /// <param name="brainFuckProgram">BrainFuck программа.</param>
                    
46        public static void GenerateIL(ILGenerator il, string brainFuckProgram)
                    
55
                    
56            BrainAction[] program = BrainParser.Parse(brainFuckProgram);
                    
57
                    
151        /// </summary>
                    
152        /// <param name="brainFuckProgram">BrainFuck программа.</param>
                    
153        /// <returns>Скомпилированная в IL программа.</returns>
                    
                
exemple_full.html git://github.com/thickpaddy/speck.git | HTML | 274 lines
                    
24			,toolbar: "search, go_to_line, |, undo, redo, |, select_font, |, syntax_selection, |, change_smooth_selection, highlight, reset_highlight, |, help"
                    
25			,syntax_selection_allow: "css,html,js,php,python,vb,xml,c,cpp,sql,basic,pas,brainfuck"
                    
26			,is_multi_files: true
                    
                
bf.c http://stuffpack.googlecode.com/svn/ | C | 79 lines
                    
1/*
                    
2	A naive and quick implementation of brainfuck
                    
3	Eitan Adler
                    
                
index.html git://github.com/perlorg/perlweb.git | HTML | 34 lines
                    
17</li>
                    
18<li><strong>Brainfuck is better than perl</strong><br />
                    
19</li>
                    
                
address.v https://github.com/mrehkopf/sd2snes.git | Verilog | 154 lines
                    
70      100      ExLoROM (StarOCean and SFA2)
                    
71      110      brainfuck interleaved 96MBit Star Ocean =)
                    
72      111      menu (ROM in upper SRAM)
                    
                
Create.pm git://github.com/dwimperl/perl-5.14.2.1-32bit-windows.git | Perl | 532 lines
                    
151	    boo => 'BOO',
                    
152	    bf => 'BrainFuck',
                    
153	    c => 'C',
                    
                
index.html git://github.com/mathiasbynens/mothereffingcssescapes.git | HTML | 45 lines
                    
3<meta charset=utf-8>
                    
4<title>Brainfuck minifier</title>
                    
5<meta name=viewport content="width=device-width,initial-scale=1">
                    
6<link rel=stylesheet href=eff.css>
                    
7<meta name=description content="An on-the-fly brainfuck minifier.">
                    
8<h1>Brainfuck minifier</h1>
                    
42<h2>About brainfuck</h2>
                    
43<p><a href=http://esolangs.org/wiki/Brainfuck>Brainfuck</a> <i>(not capitalized except at the start of a sentence)</i> is an esoteric programming language. It has eight commands — <code>+-&lt;>[],.</code> — and ignores all other characters. As a result, no special syntax for comments is needed, as long as the comments don’t contain the command characters.
                    
44<p id=footer>Made by <a href=https://mathiasbynens.be/>@mathias</a> — <a href=https://github.com/mathiasbynens/mothereff.in/tree/master/brainfuck-minifier>fork this on GitHub!</a></p>
                    
                
Brainfuck.hs git://github.com/niklasb/haskell-brainfuck.git | Haskell | 71 lines
                    
21
                    
22-- brainfuck
                    
23data BFIns = Next | Prev | Inc | Dec | Read | Write | Loop [BFIns]
                    
26type BFState = ListZipper BFCell
                    
27type Brainfuck = StateT BFState IO
                    
28
                    
32
                    
33eval :: BFIns -> Brainfuck ()
                    
34eval Next = modify forward
                    
                
credits.html git://github.com/thickpaddy/speck.git | HTML | 71 lines
                    
49					<li>Martin Gottlieb (VB)</li>
                    
50					<li>Ivan Vucica and Davor Cihlar (Basic, C, CPP, Pascal and Brainfuck)</li>
                    
51					<li>Philippe Lewicki (SQL)</li>
                    
                
pygments.html https://github.com/fluxsaas/fluxsaas.github.com.git | HTML | 122 lines
                    
13    <li>Boo</li>
                    
14    <li>BrainFuck</li>
                    
15    <li>C, C++</li>
                    
                
BrainfuckScriptEngine.java https://github.com/making/jbf.git | Java | 85 lines
                    
1package am.ik.brainfuck.scripting;
                    
2
                    
16
                    
17import am.ik.brainfuck.BFInterpreter;
                    
18
                    
18
                    
19public class BrainfuckScriptEngine extends AbstractScriptEngine implements
                    
20        Compilable {
                    
24    public static synchronized void setIn(InputStream in) {
                    
25        BrainfuckScriptEngine.in = in;
                    
26    }
                    
28    public static synchronized void setOut(PrintStream out) {
                    
29        BrainfuckScriptEngine.out = out;
                    
30    }
                    
41            BFInterpreter interpreter = new BFInterpreter(script);
                    
42            synchronized (BrainfuckScriptEngine.class) {
                    
43                interpreter.setIn(in);
                    
                
rules.html git://github.com/perlorg/perlweb.git | HTML | 52 lines
                    
30have reached TPF. So please don't be annoyed if you find your article is
                    
31sitting next to one or more other takes on why Brainfuck is better than perl,
                    
32or if we declare one or more joint winners. The principal purpose of this
                    
                
slbrainfuck.lsp http://substandard-lisp.googlecode.com/svn/trunk/ | Lisp | 74 lines
                    
1% slbrainfuck - substandard lisp brainfuck interpreter
                    
2% author: Nicky Nickell <nicky.nickell@gmail.com>
                    
64
                    
65(dom-set-title "slbrainfuck")
                    
66
                    
                
users_controller_test.rb git://github.com/zena/zena.git | Ruby | 328 lines
                    
101            'first_name' => 'Paul',
                    
102            'email'      => 'paul.bolomey@brainfuck.com',
                    
103          },
                    
125        assert_equal 'Paul', node.first_name
                    
126        assert_equal 'paul.bolomey@brainfuck.com', node.email
                    
127      end
                    
146              'first_name' => 'Paul',
                    
147              'email'  => 'paul.bolomey@brainfuck.com',
                    
148            },
                    
171          assert_equal 'Paul', node.first_name
                    
172          assert_equal 'paul.bolomey@brainfuck.com', node.email
                    
173        end
                    
                
PyBrainfuck.py https://bitbucket.org/lsabiao/pybrainfuck.git | Python | 224 lines
                    
3
                    
4# interpretador python de Brainfuck
                    
5
                    
203    # exemplo ou exemplo.bfmostrar na tela o programa "Hello World"
                    
204    # baseado no artigo en.wikipedia.org/wiki/Brainfuck
                    
205
                    
                
address.v https://bitbucket.org/Coto88/sd2snes.git | V | 290 lines
                    
85      011      BS-X
                    
86      110      brainfuck interleaved 96MBit Star Ocean =)
                    
87      111      menu (ROM in upper SRAM)
                    
                
components.js https://bitbucket.org/MQTeam/saigonsc.git | JavaScript | 630 lines
                    
117		},
                    
118		"brainfuck": {
                    
119			"title": "Brainfuck",
                    
                
ComplexSample2.scala git://github.com/JetBrains/intellij-scala.git | Scala | 76 lines
                    
41
                    
42class Brainfuck[T](func: Func[T]) {
                    
43
                    
                
interp.asm git://github.com/jpalmer/BrainF_ck-intepreter.git | Assembly | 279 lines
                    
1;The aim of this is to create a brainfuck intepreter
                    
2;status - trying for speed increases 
                    
                
BrainFuck.java https://github.com/qznc/jFirm.git | Java | 225 lines
                    
1package example.BrainFuck;
                    
2
                    
27
                    
28public class BrainFuck {
                    
29	private static int DATA_SIZE = 1000;
                    
54		
                    
55		/* create a new global array for the brainfuck data */
                    
56		PrimitiveType btype = new PrimitiveType(Mode.getBu());
                    
                
ptp.h https://bitbucket.org/alins/magic-lantern-for-500d/ | C Header | 174 lines
                    
69		int 		total_size,     // total_size should be 0 except for the first call
                    
70		int,                        // that's brainfuck for me...
                    
71		int,
                    
                
BrainfuckMachine.java https://gitlab.com/opennars/opennars.git | Java | 141 lines
                    
7 */
                    
8public class BrainfuckMachine {
                    
9    // The indexable memory available to programs.
                    
13
                    
14    public BrainfuckMachine() {
                    
15        this(64);
                    
17
                    
18    public BrainfuckMachine(int memorySize) {
                    
19        memory = new byte[memorySize];
                    
39    /*
                    
40         * Parses and executes the given source string as a Brainfuck program.
                    
41         */
                    
                
BrainMethod.cs https://ironbrainfuck.svn.codeplex.com/svn | C# | 63 lines
                    
8
                    
9namespace ZackFlame.IronBrainFuck.JIT
                    
10{
                    
31        /// </summary>
                    
32        /// <param name="sourceCode">Исходный код BrainFuck программы.</param>
                    
33        /// <param name="compiledProgram">Скомпилированная программа.</param>
                    
46        /// <param name="output">Выходной поток для вывода BrainFuck программой.</param>
                    
47        /// <returns>Номер текущей ячейки BrainFuck машины после исполнения программы.</returns>
                    
48        public UInt16 Execute(UInt16[] cells, UInt16 cellIndex,
                    
                
compile-scheme.scm git://git.savannah.gnu.org/guile.git | Scheme | 124 lines
                    
1;;; Brainfuck for GNU Guile
                    
2
                    
20
                    
21(define-module (language brainfuck compile-scheme)
                    
22  #:export (compile-scheme))
                    
23
                    
24;; Compilation of Brainfuck to Scheme is pretty straight-forward.  For all of
                    
25;; brainfuck's instructions, there are basic representations in Scheme we
                    
27;;
                    
28;; Brainfuck's pointer and data-tape are stored in the variables pointer and
                    
29;; tape, where tape is a vector of integer values initially set to zero.  Pointer
                    
39
                    
40;; This compiles a whole brainfuck program.  This constructs a Scheme code like:
                    
41;; (let ((pointer 0)
                    
78;; Compile a single instruction to Scheme, using the direct representations
                    
79;; all of Brainfuck's instructions have.
                    
80
                    
                
SubLang.c https://bitbucket.org/radare/screws | C | 536 lines
                    
35	char path[1023];
                    
36	char *langs[]={"c","perl","python","brainfuck","clisp",0};//,"clisp","ml","ruby","lua","java","csharp",0};
                    
37	int bytes;
                    
                
print.c git://github.com/macmade/BrainDead.git | C | 167 lines
                    
63        "\n"
                    
64        "    - By default, enters the interactive mode and interprets brainfuck code\n"
                    
65        "      from stdin.\n"
                    
67        "\n"
                    
68        "    - If [TARGET] is specified, interprets it as a brainfuck code file and\n"
                    
69        "      displays the result on the standard output.\n"
                    
73        "\n"
                    
74        "    - Here's the brainfuck code to use to print \"Hello World!\":\n"
                    
75        "      ++++++++++\n"
                    
78        "\n"
                    
79        "    - Here's the brainfuck code to use to create a 'cat' like command:\n"
                    
80        "      ,[.,]\n"
                    
87        "\n"
                    
88        "    - Running a brainfuck script:\n"
                    
89        "      $ braindead path/to/file\n"
                    
                
README.md https://github.com/ProgVal/Supybot-plugins.git | Markdown | 130 lines
                    
22
                    
23## Brainfuck
                    
24
                    
24
                    
25Brainfuck (a turing-complete programming language) interpreter.
                    
26
                    
                
MathHelper.cs https://ironbrainfuck.svn.codeplex.com/svn | C# | 103 lines
                    
4
                    
5namespace ZackFlame.SimpleBrainFuck
                    
6{
                    
                
BrainFuck.hx git://github.com/andyli/hxBF.git | Haxe | 190 lines
                    
1/*
                    
2	hxBF, BrainFuck interpreter written in haXe
                    
3	Based on the as3 version I've written some time ago: http://blog.onthewings.net/2009/10/08/brainflash-the-as3-brainfuck-interpreter
                    
24
                    
25class BrainFuck {
                    
26	public var memory:Bytes;
                    
45
                    
46	public function run():BrainFuck {
                    
47		while (programPosition < this.program.length){
                    
                
BrainParser.cs https://ironbrainfuck.svn.codeplex.com/svn | C# | 119 lines
                    
5
                    
6namespace ZackFlame.IronBrainFuck.Parser
                    
7{
                    
26        /// <summary>
                    
27        /// Преобразует BrainFuck программу в массив экземпляров BrainAction.
                    
28        /// </summary>
                    
28        /// </summary>
                    
29        /// <param name="brainFuckProgram">BrainFuck программа.</param>
                    
30        /// <returns>Разобранная BrainFuck программа.</returns>
                    
30        /// <returns>Разобранная BrainFuck программа.</returns>
                    
31        public static BrainAction[] Parse(string brainFuckProgram)
                    
32        {
                    
34            StringBuilder programBuilder = new StringBuilder();
                    
35            for (int i = 0; i < brainFuckProgram.Length; i++)
                    
36            {
                    
                
__init__.py https://bitbucket.org/birkenfeld/pygments-main/ | Python | 92 lines
                    
17    * it is usable as a command-line tool and as a library
                    
18    * ... and it highlights even Brainfuck!
                    
19
                    
                
ModuleBrainfuck.java git://github.com/clone1018/Shocky.git | Java | 54 lines
                    
5
                    
6import org.faabtech.brainfuck.BrainfuckEngine;
                    
7import org.pircbotx.Channel;
                    
16
                    
17public class ModuleBrainfuck extends ScriptModule {
                    
18	protected Command cmd;
                    
19	
                    
20	public String name() {return "brainfuck";}
                    
21	public String identifier() {return "bf";}
                    
40				is = new ByteArrayInputStream(message.getBytes());
                    
41			BrainfuckEngine bfe = new BrainfuckEngine(code.length(),os,is);
                    
42			bfe.interpret(code);
                    
50		public String help(Parameters params) {
                    
51			return "brainfuck/bf\nbrainfuck {code} - runs brainfuck code";
                    
52		}
                    
                
 

Source

Language