From Esolang
Jump to navigation Jump to search

This is experiment to make a programming language with RDF graphs like XMLfuck is using XML documents. It is like brainfuck because it is a simple way to do and because XMLfuck does it; later on other extensions can be added to in order to make a different kind of programming language instead.

There is one instruction pointer which points to a node, and a call stack of list of pointer to nodes. There is also the tape which is the standard tape of brainfuck.

The instruction pointer initially points to the node with an edge of type gopher://zzo38computer.org/1ns/meta:primary leading out of it.

In order to execute a node:

The possible commands are:

There is one built-in triple <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> <http://esolangs.org/wiki/RDF-fuck#exit>. Adding it explicitly to your program is redundant.


 @prefix : <http://esolangs.org/wiki/RDF-fuck#>.
 (:read (:print :read)) <gopher://zzo38computer.org/1ns/meta:primary> [].