summaryrefslogtreecommitdiff
path: root/readme.txt
blob: 8ac034ba82d4a36cd5b16a25ee7e7eb5100777f2 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

Usage of each interpreter is of the form:

<interpreter name> <program file>



The Thue interpreter also has several command line switches:

    -l      --left      Evaluates applicable rules left to right
    -r      --right     Evaluates applicable rules right to left
    -a      --random    Evaluetes applicable rules randomly (default)

    -1      --ver1      Uses the version 1 parser/interpreter (default)
    -2      --ver2a     Uses the version 2a parser/interpreter





Fractran file format is one integer followed by an arbitrary number of
fractions of the form a/b where both a and b are integers and b is not 0.
Whitespace is not allowed inside a fraction, but is otherwise ignored.




Thue file format is of a list of thue rules followed by the initial program
state, as per the thue specification. Note that whitespace before and after
the lhs or rhs of a rule is counted in that rule, and that a rule consisting
of only whitespace (eg "   ::=   ") is treated as any other rule, not the
termination of the rule list.




Unlambda files should contain a single unlambda term, usually an application.
All characters on a line after a # will be ignored, unless the # was part of
a . or ? function. All whitespace is ignored.




Brainfuck files should contain a number of brainfuck commands. All other
characters are treated as whitespace and summarily ignored. The only
restriction is that all [ loops must be closed with a corresponding ].