From 142047d09ab542fafb1c51a2bbbdece84a3e42cc Mon Sep 17 00:00:00 2001 From: Archie Date: Wed, 19 Oct 2016 20:00:50 +0100 Subject: [PATCH] add verbosefuck.vbfk added VerboseFuck to the list of languages --- v/verbosefuck.vbfk | 160 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 160 insertions(+) create mode 100644 v/verbosefuck.vbfk diff --git a/v/verbosefuck.vbfk b/v/verbosefuck.vbfk new file mode 100644 index 00000000..aaf1776a --- /dev/null +++ b/v/verbosefuck.vbfk @@ -0,0 +1,160 @@ +~!comment!~VerboseFuck, a BrainFuck derivative focussing on verbosity. see more at ~!uncomment!~ +program.initialize(); +math.equation(program.errors.handler.activated = boolean(false)); +program.console.standardinput.openstream(); +program.console.standardoutput.openstream(); +define(defines.variable, variable(pointer)); +implanttype(pointer, types.pointer(to:types.byte)); +math.equation(pointer = void(0)); +program.memory.allocate(pointer, void(math.infinity), program.memory.memorytype.bidirectional); +~!comment!~MANDATORY~!uncomment!~ +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +~!comment!~MANDATORY~!uncomment!~ +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +~!comment!~MANDATORY~!uncomment!~ +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +define(defines.label, defines.label.createnew()); +conditional(block.if, boolean.inequality(deref(pointer), byte(0))) { + math.equation(pointer = pointer + void(1)); + ~!comment!~MANDATORY~!uncomment!~ + math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); + math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); + math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); + math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); + ~!comment!~MANDATORY~!uncomment!~ + math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); + math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); + math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); + math.equation(pointer = pointer + void(1)); + ~!comment!~MANDATORY~!uncomment!~ + math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); + math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); + math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); + math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); + ~!comment!~MANDATORY~!uncomment!~ + math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); + math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); + math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); + math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); + ~!comment!~MANDATORY~!uncomment!~ + math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); + math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); + math.equation(pointer = pointer + void(1)); + math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); + ~!comment!~MANDATORY~!uncomment!~ + math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); + math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); + math.equation(pointer = pointer + void(1)); + math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); + ~!comment!~MANDATORY~!uncomment!~ + math.equation(pointer = pointer - void(1)); + math.equation(pointer = pointer - void(1)); + math.equation(pointer = pointer - void(1)); + math.equation(pointer = pointer - void(1)); + ~!comment!~MANDATORY~!uncomment!~ + math.equation(deref(pointer) = (deref(pointer) - byte(1)):binaryand:byte(255)); +}; +conditional(block.if, boolean.inequality(deref(pointer), byte(0))) { + program.flow.labeledjump(defines.label.last()); +}; +undefine(defines.label, defines.label.last()); +math.equation(pointer = pointer + void(1)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +~!comment!~MANDATORY~!uncomment!~ +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +program.console.standardoutput.stream.writeunbufferedchars(array.create(1, conversion.changedatatype(deref(pointer), types.character, conversion.method.binary)), 0, 1); +math.equation(pointer = pointer + void(1)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +~!comment!~MANDATORY~!uncomment!~ +program.console.standardoutput.stream.writeunbufferedchars(array.create(1, conversion.changedatatype(deref(pointer), types.character, conversion.method.binary)), 0, 1); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +~!comment!~MANDATORY~!uncomment!~ +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +~!comment!~MANDATORY~!uncomment!~ +program.console.standardoutput.stream.writeunbufferedchars(array.create(1, conversion.changedatatype(deref(pointer), types.character, conversion.method.binary)), 0, 1); +program.console.standardoutput.stream.writeunbufferedchars(array.create(1, conversion.changedatatype(deref(pointer), types.character, conversion.method.binary)), 0, 1); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +~!comment!~MANDATORY~!uncomment!~ +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +program.console.standardoutput.stream.writeunbufferedchars(array.create(1, conversion.changedatatype(deref(pointer), types.character, conversion.method.binary)), 0, 1); +math.equation(pointer = pointer + void(1)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +~!comment!~MANDATORY~!uncomment!~ +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +program.console.standardoutput.stream.writeunbufferedchars(array.create(1, conversion.changedatatype(deref(pointer), types.character, conversion.method.binary)), 0, 1); +math.equation(pointer = pointer - void(1)); +math.equation(pointer = pointer - void(1)); +~!comment!~MANDATORY~!uncomment!~ +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +~!comment!~MANDATORY~!uncomment!~ +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +~!comment!~MANDATORY~!uncomment!~ +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +~!comment!~MANDATORY~!uncomment!~ +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +program.console.standardoutput.stream.writeunbufferedchars(array.create(1, conversion.changedatatype(deref(pointer), types.character, conversion.method.binary)), 0, 1); +~!comment!~MANDATORY~!uncomment!~ +math.equation(pointer = pointer + void(1)); +program.console.standardoutput.stream.writeunbufferedchars(array.create(1, conversion.changedatatype(deref(pointer), types.character, conversion.method.binary)), 0, 1); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +~!comment!~MANDATORY~!uncomment!~ +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +program.console.standardoutput.stream.writeunbufferedchars(array.create(1, conversion.changedatatype(deref(pointer), types.character, conversion.method.binary)), 0, 1); +math.equation(deref(pointer) = (deref(pointer) - byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) - byte(1)):binaryand:byte(255)); +~!comment!~MANDATORY~!uncomment!~ +math.equation(deref(pointer) = (deref(pointer) - byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) - byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) - byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) - byte(1)):binaryand:byte(255)); +~!comment!~MANDATORY~!uncomment!~ +program.console.standardoutput.stream.writeunbufferedchars(array.create(1, conversion.changedatatype(deref(pointer), types.character, conversion.method.binary)), 0, 1); +math.equation(deref(pointer) = (deref(pointer) - byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) - byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) - byte(1)):binaryand:byte(255)); +~!comment!~MANDATORY~!uncomment!~ +math.equation(deref(pointer) = (deref(pointer) - byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) - byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) - byte(1)):binaryand:byte(255)); +math.equation(deref(pointer) = (deref(pointer) - byte(1)):binaryand:byte(255)); +~!comment!~MANDATORY~!uncomment!~ +math.equation(deref(pointer) = (deref(pointer) - byte(1)):binaryand:byte(255)); +program.console.standardoutput.stream.writeunbufferedchars(array.create(1, conversion.changedatatype(deref(pointer), types.character, conversion.method.binary)), 0, 1); +math.equation(pointer = pointer + void(1)); +math.equation(deref(pointer) = (deref(pointer) + byte(1)):binaryand:byte(255)); +~!comment!~MANDATORY~!uncomment!~ +program.console.standardoutput.stream.writeunbufferedchars(array.create(1, conversion.changedatatype(deref(pointer), types.character, conversion.method.binary)), 0, 1); +math.equation(pointer = pointer + void(1)); +program.console.standardoutput.stream.writeunbufferedchars(array.create(1, conversion.changedatatype(deref(pointer), types.character, conversion.method.binary)), 0, 1); +~!comment!~MANDATORY~!uncomment!~ +program.memory.deallocate(pointer, void(math.infinity), program.memory.memorytype.bidirectional); +undefine(defines.variable, variable(pointer)); +program.console.standardoutput.closestream(); +program.console.standardinput.closestream(); +program.terminate(); +~!comment!~MANDATORY~!uncomment!~