Posts Tagged ‘concept’

Visual Logic Proof of Concept

Filed under: Game Maker


This is a little proof of concept for a visual approach to programming.

You create a logic chain by placing links between the ‘input’ and ‘output’ points of actions/conditionals/loops/whatever. The rule is that at least one point of a link must be blue, and you can not link two blue points. Basically, make sure you only connect outputs and inputs, not two of the same kind.
The execution starts from the function entry-point, the tag with only a white output.
Currently you can not break links
Currently you can link two outputs to the same input as a legal operation. Do you think this should be kept that way?
Currently there is no checking for infinite loops (such as an output of a function linking straight back to it’s own input)
On an IF, the green output links to what’s executed if the IF returned true, red for false, and white for whatever happens afterwards.

Once you’re done with the diagram, hit Return, and it will compile a script which will be saved to the same path as the program as ‘out.txt’
If it freezes or throws an error, you created an infinite loop or other non-logical thing in the diagram.

It’s limited to random IFs and one function right now, but that can now easily grow.

The editable to this was lost with my hdd in 2006 so this is an exe.

Visual Logic Editor

Tags: , ,

Permalink Comments (0) GearGOD Oct 2, 2007

1337 Interpreter

Filed under: Game Maker

The funniest programming language i’ve come across is l33t. Educate yourself here
http://en.wikipedia.org/wiki/L33t_programming_language

I wrote a quick interpreter for it in GM. Mind, the source code is horrible. It’s an example of how NOT to write a virtual machine. It will parse the contents of source.txt and print the output. No input supported right now. I tested it on most sample programs and found that they work. The ones that do not are fibonacci and countdown, for reasons unknown yet.

More sample programs you can try running can be found here:
http://electrod.ifreepages.com/l33tprogs.htm

int3rpr3t0r download

Tags: ,

Permalink Comments (2) GearGOD Oct 2, 2007