-
Notifications
You must be signed in to change notification settings - Fork 14
/
example_seeds.txt
111 lines (81 loc) · 1.48 KB
/
example_seeds.txt
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# List of example seeds and their yields.
# Examples are wrapped into a large option group,
# so running this whole file as a seed
# will output all of the examples one after the other.
# CHEAT SHEET:
# " string (atom)
# < sequence (concatenate)
# { option (choose one)
# ( permutation (shuffle)
# [ modification (modify previous group)
# # comment (ignored)
# Seeds are normally wrapped with an implicit global <>,
# I have explicitly wrapped each here to put them all in the same file.
{
# --------------------------------------
< # EXAMPLE 1 (string)
"banana"
> # EXAMPLE 1 YIELDS:
# banana
# --------------------------------------
< # EXAMPLE 2 (sequence)
<
"apple"
"orange"
>
> # EXAMPLE 2 YIELDS:
# appleorange
# --------------------------------------
< # EXAMPLE 3 (option)
{
"apple"
"orange"
}
> # EXAMPLE 3 YIELDS:
# apple
# orange
# --------------------------------------
< # EXAMPLE 4 (option + atom in implicit sequence)
{
"apple"
"orange"
}
"123"
> # EXAMPLE 4 YIELDS:
# apple123
# orange123
# --------------------------------------
< # EXAMPLE 5 (two options in implicit sequence)
{
"apple"
"orange"
}
{
"123"
"abc"
}
> # EXAMPLE 5 YIELDS:
# apple123
# appleabc
# orange123
# orangeabc
# --------------------------------------
< # EXAMPLE 6 (option with substitution)
{
"apple"
"orange"
}
[
s1"abcdefghijklmnopqrstuvwxyz"
]
> # EXAMPLE 6 YIELDS:
# apple
# bpple
# cpple
# ...
# applz
# arange
# ...
# orangz
# --------------------------------------
}