User talk:Palaiologos

From Esolang
Jump to navigation Jump to search

b2all

If someone fancy donating a backend template (while keeping the copyright, obviously) for b2all (brainfuck-to-anything compiler in brainfuck), please contact me via IRC (kspalaiologos on #esoteric at freenode) or e-mail.

Example backend description:


[general]
indent=true
starting=3

[header]
content=<<EOT
// C# code generated by b2cs from b2any toolkit.
// Header code - Copyright (C) 2019 by Krzysztof Szewczyk
// The original brianfuck code belongs to it's author.
// Have fun!                        ~~ Palaiologos/MENACE

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;

namespace b2any
{
    public class Generated
    {
        private static int[] memory;
        private static int ptr;
        
        private static int Read()
        {
            int c = Console.read();
            return c == -1 ? 0 : c;
        }
        
        public static void Main(string[] args)
        {
            tape = new int[65536];
            ptr = 0;
EOT

[footer]
content=<<EOT
        }
    }
}

EOT

unbal=<<EOT
// NOTE: This code will NOT run. Brackets are unbalanced.
EOT

[instructions]
plus=memory[ptr] += $N;
minus=memory[ptr] -= $N;
left=ptr -= $N;
right=ptr += $N;
input=memory[ptr] = Read();
output=Console.Write((char) memory[ptr]);
lbra=while(memory[ptr] != 0) {
rbra=}