blob: a0d18d28755433cace5b7a9f3836960adeac9338 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
Self-referential code testbed
=============================
This repository contains tools and examples to work with
self-referential code.
Concepts
--------
- Code: a bitstring of length n, containing of the ASCII chars zero or one
- Interpreter: a program to interpret code as a program, run it given
code as input argument and return code as a result
- Arena: a program to orchestrate one or more interpreters to act one code
Content
-------
- TournementArena.java: an example arena
- Interpreter.java: java interface each Interpreter has to follow
- AbstractInterpreter.java: class to derive an interpreter; only eval is missing
- InterpreterStandalone.java: convert a java interpreter class into a standalone program
- XorInterpreter.java: an example interpreter
- ExternalInterpreter.java: a class to call an external interpreter
- BitString.java: helper to concert code into a BitSet for easier parsing
|