-
Notifications
You must be signed in to change notification settings - Fork 0
/
sdprompt.html
609 lines (598 loc) · 15 KB
/
sdprompt.html
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style type="text/css">
svg.railroad-diagram {
background-color: hsl(30,20%,95%);
}
svg.railroad-diagram path {
stroke-width: 3;
stroke: black;
fill: rgba(0,0,0,0);
}
svg.railroad-diagram text {
font: bold 14px monospace;
text-anchor: middle;
}
svg.railroad-diagram text.label {
text-anchor: start;
}
svg.railroad-diagram text.comment {
font: italic 12px monospace;
}
svg.railroad-diagram rect {
stroke-width: 3;
stroke: black;
fill: hsl(120,100%,90%);
}
</style>
</head>
<body>
<h1><code>main</code></h1>
<div>
<svg class="railroad-diagram" width="313" height="92" viewBox="0 0 313 92">
<g transform="translate(.5 .5)">
<path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<g>
<path d="M40 31h0"></path>
<path d="M272 31h0"></path>
<path d="M40 31h20"></path>
<g>
<path d="M60 31h0"></path>
<path d="M252 31h0"></path>
<g>
<path d="M60 31h0"></path>
<path d="M252 31h0"></path>
<path d="M60 31h20"></path>
<g>
<path d="M80 31h32"></path>
<path d="M200 31h32"></path>
<path d="M112 31h10"></path>
<g>
<path d="M122 31h0"></path>
<path d="M190 31h0"></path>
<rect x="122" y="20" width="68" height="22"></rect>
<text x="156" y="35">prompt</text>
</g>
<path d="M190 31h10"></path>
</g>
<path d="M232 31h20"></path>
<path d="M60 31a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
<g>
<path d="M80 61h0"></path>
<path d="M232 61h0"></path>
<path d="M80 61h10"></path>
<g>
<path d="M90 61h0"></path>
<path d="M222 61h0"></path>
<rect x="90" y="50" width="132" height="22"></rect>
<text x="156" y="65">variant_prompt</text>
</g>
<path d="M222 61h10"></path>
</g>
<path d="M232 61a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
</g>
</g>
<path d="M252 31h20"></path>
</g>
<path d="M 272 31 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
</div>
<h1><code>variant_prompt</code></h1>
<div>
<svg class="railroad-diagram" width="305" height="81" viewBox="0 0 305 81">
<g transform="translate(.5 .5)">
<path d="M 20 31 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<g>
<path d="M40 41h0"></path>
<path d="M264 41h0"></path>
<path d="M40 41h20"></path>
<g>
<path d="M60 41h0"></path>
<path d="M244 41h0"></path>
<g>
<path d="M60 41h0"></path>
<path d="M244 41h0"></path>
<path d="M60 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M80 21h144"></path>
</g>
<path d="M224 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M60 41h20"></path>
<g>
<path d="M80 41h0"></path>
<path d="M224 41h0"></path>
<path d="M80 41h10"></path>
<g>
<path d="M90 41h0"></path>
<path d="M214 41h0"></path>
<rect x="90" y="30" width="124" height="22"></rect>
<text x="152" y="45">variant_chunk</text>
</g>
<path d="M214 41h10"></path>
<path d="M90 41a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
<g>
<path d="M90 61h124"></path>
</g>
<path d="M214 61a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
</g>
<path d="M224 41h20"></path>
</g>
</g>
<path d="M244 41h20"></path>
</g>
<path d="M 264 41 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
</div>
<h1><code>variant_chunk</code></h1>
<div>
<svg class="railroad-diagram" width="393" height="122" viewBox="0 0 393 122">
<g transform="translate(.5 .5)">
<path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<g>
<path d="M40 31h0"></path>
<path d="M352 31h0"></path>
<path d="M40 31h20"></path>
<g>
<path d="M60 31h0"></path>
<path d="M332 31h0"></path>
<g>
<path d="M60 31h0"></path>
<path d="M332 31h0"></path>
<path d="M60 31h20"></path>
<g>
<path d="M80 31h64"></path>
<path d="M248 31h64"></path>
<path d="M144 31h10"></path>
<g>
<path d="M154 31h0"></path>
<path d="M238 31h0"></path>
<rect x="154" y="20" width="84" height="22"></rect>
<text x="196" y="35">variants</text>
</g>
<path d="M238 31h10"></path>
</g>
<path d="M312 31h20"></path>
<path d="M60 31a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
<g>
<path d="M80 61h64"></path>
<path d="M248 61h64"></path>
<path d="M144 61h10"></path>
<g>
<path d="M154 61h0"></path>
<path d="M238 61h0"></path>
<rect x="154" y="50" width="84" height="22"></rect>
<text x="196" y="65">wildcard</text>
</g>
<path d="M238 61h10"></path>
</g>
<path d="M312 61a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
<path d="M60 31a10 10 0 0 1 10 10v40a10 10 0 0 0 10 10"></path>
<g>
<path d="M80 91h0"></path>
<path d="M312 91h0"></path>
<path d="M80 91h10"></path>
<g>
<path d="M90 91h0"></path>
<path d="M302 91h0"></path>
<rect x="90" y="80" width="212" height="22"></rect>
<text x="196" y="95">variant_literal_sequence</text>
</g>
<path d="M302 91h10"></path>
</g>
<path d="M312 91a10 10 0 0 0 10 -10v-40a10 10 0 0 1 10 -10"></path>
</g>
</g>
<path d="M332 31h20"></path>
</g>
<path d="M 352 31 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
</div>
<h1><code>variants</code></h1>
<div>
<svg class="railroad-diagram" width="625" height="72" viewBox="0 0 625 72">
<g transform="translate(.5 .5)">
<path d="M 20 31 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<g>
<path d="M40 41h0"></path>
<path d="M584 41h0"></path>
<path d="M40 41h20"></path>
<g>
<path d="M60 41h0"></path>
<path d="M564 41h0"></path>
<path d="M60 41h10"></path>
<g>
<path d="M70 41h0"></path>
<path d="M170 41h0"></path>
<rect x="70" y="30" width="100" height="22" rx="10" ry="10"></rect>
<text x="120" y="45">lmoustache</text>
</g>
<path d="M170 41h10"></path>
<g>
<path d="M180 41h0"></path>
<path d="M280 41h0"></path>
<path d="M180 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M200 21h60"></path>
</g>
<path d="M260 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M180 41h20"></path>
<g>
<path d="M200 41h0"></path>
<path d="M260 41h0"></path>
<rect x="200" y="30" width="60" height="22"></rect>
<text x="230" y="45">bound</text>
</g>
<path d="M260 41h20"></path>
</g>
<g>
<path d="M280 41h0"></path>
<path d="M444 41h0"></path>
<path d="M280 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M300 21h124"></path>
</g>
<path d="M424 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M280 41h20"></path>
<g>
<path d="M300 41h0"></path>
<path d="M424 41h0"></path>
<rect x="300" y="30" width="124" height="22"></rect>
<text x="362" y="45">variants_list</text>
</g>
<path d="M424 41h20"></path>
</g>
<path d="M444 41h10"></path>
<g>
<path d="M454 41h0"></path>
<path d="M554 41h0"></path>
<rect x="454" y="30" width="100" height="22" rx="10" ry="10"></rect>
<text x="504" y="45">rmoustache</text>
</g>
<path d="M554 41h10"></path>
</g>
<path d="M564 41h20"></path>
</g>
<path d="M 584 41 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
</div>
<h1><code>variants_list</code></h1>
<div>
<svg class="railroad-diagram" width="477" height="81" viewBox="0 0 477 81">
<g transform="translate(.5 .5)">
<path d="M 20 31 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<g>
<path d="M40 41h0"></path>
<path d="M436 41h0"></path>
<path d="M40 41h20"></path>
<g>
<path d="M60 41h0"></path>
<path d="M416 41h0"></path>
<path d="M60 41h10"></path>
<g>
<path d="M70 41h0"></path>
<path d="M146 41h0"></path>
<rect x="70" y="30" width="76" height="22"></rect>
<text x="108" y="45">variant</text>
</g>
<path d="M146 41h10"></path>
<g>
<path d="M156 41h0"></path>
<path d="M416 41h0"></path>
<path d="M156 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M176 21h220"></path>
</g>
<path d="M396 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M156 41h20"></path>
<g>
<path d="M176 41h0"></path>
<path d="M396 41h0"></path>
<path d="M176 41h10"></path>
<g>
<path d="M186 41h0"></path>
<path d="M386 41h0"></path>
<path d="M186 41h20"></path>
<g>
<path d="M206 41h0"></path>
<path d="M366 41h0"></path>
<path d="M206 41h10"></path>
<g>
<path d="M216 41h0"></path>
<path d="M260 41h0"></path>
<rect x="216" y="30" width="44" height="22" rx="10" ry="10"></rect>
<text x="238" y="45">bar</text>
</g>
<path d="M260 41h10"></path>
<path d="M270 41h10"></path>
<g>
<path d="M280 41h0"></path>
<path d="M356 41h0"></path>
<rect x="280" y="30" width="76" height="22"></rect>
<text x="318" y="45">variant</text>
</g>
<path d="M356 41h10"></path>
</g>
<path d="M366 41h20"></path>
</g>
<path d="M386 41h10"></path>
<path d="M186 41a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
<g>
<path d="M186 61h200"></path>
</g>
<path d="M386 61a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
</g>
<path d="M396 41h20"></path>
</g>
</g>
<path d="M416 41h20"></path>
</g>
<path d="M 436 41 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
</div>
<h1><code>variant</code></h1>
<div>
<svg class="railroad-diagram" width="381" height="72" viewBox="0 0 381 72">
<g transform="translate(.5 .5)">
<path d="M 20 31 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<g>
<path d="M40 41h0"></path>
<path d="M340 41h0"></path>
<path d="M40 41h20"></path>
<g>
<path d="M60 41h0"></path>
<path d="M320 41h0"></path>
<g>
<path d="M60 41h0"></path>
<path d="M168 41h0"></path>
<path d="M60 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M80 21h68"></path>
</g>
<path d="M148 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M60 41h20"></path>
<g>
<path d="M80 41h0"></path>
<path d="M148 41h0"></path>
<rect x="80" y="30" width="68" height="22"></rect>
<text x="114" y="45">weight</text>
</g>
<path d="M148 41h20"></path>
</g>
<path d="M168 41h10"></path>
<g>
<path d="M178 41h0"></path>
<path d="M310 41h0"></path>
<rect x="178" y="30" width="132" height="22"></rect>
<text x="244" y="45">variant_prompt</text>
</g>
<path d="M310 41h10"></path>
</g>
<path d="M320 41h20"></path>
</g>
<path d="M 340 41 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
</div>
<h1><code>weight</code></h1>
<div>
<svg class="railroad-diagram" width="217" height="92" viewBox="0 0 217 92">
<g transform="translate(.5 .5)">
<path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<g>
<path d="M40 31h0"></path>
<path d="M176 31h0"></path>
<path d="M40 31h20"></path>
<g>
<path d="M60 31h4"></path>
<path d="M152 31h4"></path>
<path d="M64 31h10"></path>
<g>
<path d="M74 31h0"></path>
<path d="M142 31h0"></path>
<rect x="74" y="20" width="68" height="22" rx="10" ry="10"></rect>
<text x="108" y="35">number</text>
</g>
<path d="M142 31h10"></path>
</g>
<path d="M156 31h20"></path>
<path d="M40 31a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
<g>
<path d="M60 61h0"></path>
<path d="M156 61h0"></path>
<path d="M60 61h10"></path>
<g>
<path d="M70 61h0"></path>
<path d="M146 61h0"></path>
<rect x="70" y="50" width="76" height="22" rx="10" ry="10"></rect>
<text x="108" y="65">integer</text>
</g>
<path d="M146 61h10"></path>
</g>
<path d="M156 61a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
</g>
<path d="M 176 31 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
</div>
<h1><code>bound</code></h1>
<div>
<svg class="railroad-diagram" width="641" height="72" viewBox="0 0 641 72">
<g transform="translate(.5 .5)">
<path d="M 20 31 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<g>
<path d="M40 41h0"></path>
<path d="M600 41h0"></path>
<path d="M40 41h20"></path>
<g>
<path d="M60 41h0"></path>
<path d="M580 41h0"></path>
<path d="M60 41h10"></path>
<g>
<path d="M70 41h0"></path>
<path d="M146 41h0"></path>
<rect x="70" y="30" width="76" height="22" rx="10" ry="10"></rect>
<text x="108" y="45">integer</text>
</g>
<path d="M146 41h10"></path>
<g>
<path d="M156 41h0"></path>
<path d="M404 41h0"></path>
<path d="M156 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M176 21h208"></path>
</g>
<path d="M384 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M156 41h20"></path>
<g>
<path d="M176 41h0"></path>
<path d="M384 41h0"></path>
<path d="M176 41h20"></path>
<g>
<path d="M196 41h0"></path>
<path d="M364 41h0"></path>
<path d="M196 41h10"></path>
<g>
<path d="M206 41h0"></path>
<path d="M258 41h0"></path>
<rect x="206" y="30" width="52" height="22" rx="10" ry="10"></rect>
<text x="232" y="45">dash</text>
</g>
<path d="M258 41h10"></path>
<path d="M268 41h10"></path>
<g>
<path d="M278 41h0"></path>
<path d="M354 41h0"></path>
<rect x="278" y="30" width="76" height="22" rx="10" ry="10"></rect>
<text x="316" y="45">integer</text>
</g>
<path d="M354 41h10"></path>
</g>
<path d="M364 41h20"></path>
</g>
<path d="M384 41h20"></path>
</g>
<path d="M404 41h10"></path>
<g>
<path d="M414 41h0"></path>
<path d="M482 41h0"></path>
<rect x="414" y="30" width="68" height="22" rx="10" ry="10"></rect>
<text x="448" y="45">dollar</text>
</g>
<path d="M482 41h10"></path>
<path d="M492 41h10"></path>
<g>
<path d="M502 41h0"></path>
<path d="M570 41h0"></path>
<rect x="502" y="30" width="68" height="22" rx="10" ry="10"></rect>
<text x="536" y="45">dollar</text>
</g>
<path d="M570 41h10"></path>
</g>
<path d="M580 41h20"></path>
</g>
<path d="M 600 41 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
</div>
<h1><code>wildcard</code></h1>
<div>
<svg class="railroad-diagram" width="561" height="62" viewBox="0 0 561 62">
<g transform="translate(.5 .5)">
<path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<g>
<path d="M40 31h0"></path>
<path d="M520 31h0"></path>
<path d="M40 31h20"></path>
<g>
<path d="M60 31h0"></path>
<path d="M500 31h0"></path>
<path d="M60 31h10"></path>
<g>
<path d="M70 31h0"></path>
<path d="M234 31h0"></path>
<rect x="70" y="20" width="164" height="22" rx="10" ry="10"></rect>
<text x="152" y="35">wildcard_enclosure</text>
</g>
<path d="M234 31h10"></path>
<path d="M244 31h10"></path>
<g>
<path d="M254 31h0"></path>
<path d="M306 31h0"></path>
<rect x="254" y="20" width="52" height="22" rx="10" ry="10"></rect>
<text x="280" y="35">path</text>
</g>
<path d="M306 31h10"></path>
<path d="M316 31h10"></path>
<g>
<path d="M326 31h0"></path>
<path d="M490 31h0"></path>
<rect x="326" y="20" width="164" height="22" rx="10" ry="10"></rect>
<text x="408" y="35">wildcard_enclosure</text>
</g>
<path d="M490 31h10"></path>
</g>
<path d="M500 31h20"></path>
</g>
<path d="M 520 31 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
</div>
<h1><code>variant_literal_sequence</code></h1>
<div>
<svg class="railroad-diagram" width="361" height="71" viewBox="0 0 361 71">
<g transform="translate(.5 .5)">
<path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<g>
<path d="M40 31h0"></path>
<path d="M320 31h0"></path>
<path d="M40 31h20"></path>
<g>
<path d="M60 31h0"></path>
<path d="M300 31h0"></path>
<path d="M60 31h10"></path>
<g>
<path d="M70 31h0"></path>
<path d="M290 31h0"></path>
<path d="M70 31h10"></path>
<g>
<path d="M80 31h0"></path>
<path d="M280 31h0"></path>
<path d="M80 31h20"></path>
<g>
<path d="M100 31h0"></path>
<path d="M260 31h0"></path>
<path d="M100 31h10"></path>
<g>
<path d="M110 31h0"></path>
<path d="M250 31h0"></path>
<rect x="110" y="20" width="140" height="22" rx="10" ry="10"></rect>
<text x="180" y="35">variant_literal</text>
</g>
<path d="M250 31h10"></path>
</g>
<path d="M260 31h20"></path>
</g>
<path d="M280 31h10"></path>
<path d="M80 31a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
<g>
<path d="M80 51h200"></path>
</g>
<path d="M280 51a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
</g>
<path d="M290 31h10"></path>
</g>
<path d="M300 31h20"></path>
</g>
<path d="M 320 31 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
</div>
</body>
</html>