Lines added in edit (added_lines) | [
0 => ''''Chair''' is a [[joke language list|joke language]] created by CoolJarreb99, where every variable is a chair, and only one variable can be used at a time, variables have to be deconstructed and reconstructed to be read or modified, etc.',
1 => '',
2 => '{{infobox proglang',
3 => '|name=Chair',
4 => '|author=[[User:CoolJarreb99|CoolJarreb99]]',
5 => '|year=2026',
6 => '|files=<code>.chair</code>',
7 => '}}',
8 => '',
9 => '==Syntax==',
10 => 'Every line in Chair is seperated by a newline. Every argument of a command is seperated with a whitespace. If a command does not support wool chairs, it acts as if it were the number corresponding to its length ("ABC" would be 3, "Chair" would be 5, etc.)',
11 => '',
12 => '==Commands==',
13 => '{| class="wikitable"',
14 => '!Command !!Description !!Example',
15 => '|-',
16 => '|<code>//</code>',
17 => '|A comment. Nothing happens.',
18 => '|',
19 => ' //Comment //Does nothing.',
20 => '|-',
21 => '|<code>Construct</code>',
22 => '|Initializes a variable (argument 2) of type specified by first argument. Automatically activates this chair.',
23 => '|',
24 => ' Construct chair mychair',
25 => '|-',
26 => '|<code>Sit</code>',
27 => '|Activates this chair. Skips if first argument is deconstructed.',
28 => '|',
29 => ' Sit mychair',
30 => '|-',
31 => '|<code>Value</code>',
32 => '|Set the value of the active chair to the first argument.',
33 => '|',
34 => ' Sit mychair',
35 => ' Value 42',
36 => '|-',
37 => '|<code>Copy</code>',
38 => '|Sets value of active chair to the value of the chair given in the first argument.',
39 => '|',
40 => ' Sit mychair',
41 => ' Copy otherchair',
42 => '|-',
43 => '|<code>Add</code>',
44 => '|Adds the first argument to the active chair. If the argument is wool and the active chair is a wool chair, the argument gets appended. If the argument is a number and the active chair is a number, it is normal addition. If the argument is a number and the active chair is a wool chair, it removes the first n letters, n being the argument.',
45 => '|',
46 => ' Sit mychair',
47 => ' Add addchair',
48 => '|-',
49 => '|<code>Sub</code>',
50 => '|The same as <code>Add</code>, except it subtracts. If active chair is wool chair and argument is number, it removes the last n letters, n being the argument.',
51 => '|',
52 => ' Sit mychair',
53 => ' Sub subchair',
54 => '|-',
55 => '|<code>Mult</code>',
56 => '|The same as <code>Add</code>, except it multiplies. If active chair is wool chair and argument is integer, it repeats the value n times, n being the argument.',
57 => '|',
58 => ' Sit mychair',
59 => ' Mult multchair',
60 => '|-',
61 => '|<code>Div</code>',
62 => '|The same as <code>Add</code>, except it divides.',
63 => '|',
64 => ' Sit mychair',
65 => ' Div divchair',
66 => '|-',
67 => '|<code>Exp</code>',
68 => '|Exponentializes the active chair by the first argument. Same behavior as <code>Mult</code>',
69 => '|',
70 => ' Sit mychair',
71 => ' Exp expchair',
72 => '|-',
73 => '|<code>Deconstruct</code>',
74 => '|Makes the chair given in the first argument deconstructed. A deconstructed chair cannot be sat on, nor modified. A chair that is not deconstructed, however, cannot be read, unless sat on. Humans, rocking chairs and wool cannot be deconstructed, and can always be read from.',
75 => '|',
76 => ' Sit otherchair',
77 => ' Deconstruct mychair',
78 => ' Add mychair',
79 => ' Reconstruct mychair',
80 => '|-',
81 => '|<code>Reconstruct</code>',
82 => '|Makes a chair no longer deconstructed.',
83 => '|',
84 => ' Sit otherchair',
85 => ' Deconstruct mychair',
86 => ' Add mychair',
87 => ' Reconstruct mychair',
88 => '|-',
89 => '|<code>Rock</code>',
90 => '|Flips the active chair's value. If the value is not 0, it becomes 0. Otherwise, it becomes 1.',
91 => '|',
92 => ' Sit myrockingchair',
93 => ' Rock',
94 => '|-',
95 => '|<code>Check</code>, <code>Checked</code> and <code>Routine end</code>',
96 => '|<code>Check</code> checks if the active chair is not equal to 0. If it is equal to 0, it won't execute any commands until it reaches its respective <code>Routine end</code>. The first argument of <code>Check</code> is the chair to check. <code>Checked</code> is used inside <code>Check</code>s to end the checkup and go to a <code>Routine end</code>. The argument for <code>Checked</code> is how many <code>Check</code>s to cancel. <code>Routine end</code> marks the end of a routine, a routine being a loop, an <code>Automation</code>, or a <code>Check</code>.',
97 => '|',
98 => ' Set myrockingchair',
99 => ' Better mychair otherchair',
100 => ' Check myrockingchair',
101 => ' Set mywoolchair',
102 => ' Read',
103 => ' Set otherrockingchair',
104 => ' Deconstruct mywoolchair',
105 => ' Equal mywoolchair constantwoolchair',
106 => ' Check otherrockingchair',
107 => ' Checked 2',
108 => ' Routine end',
109 => ' Set constantwoolchair',
110 => ' Read',
111 => ' Routine end',
112 => '|-',
113 => '|<code>Better</code>',
114 => '|If the first argument is greater than the second, the active chair's value will be 1. Otherwise, it will be 0.',
115 => '|',
116 => ' Sit myrockingchair',
117 => ' Better mychair 8',
118 => ' Check myrockingchair',
119 => ' Set tempwoolchair',
120 => ' Value "Chair mychair is greater than 8"',
121 => ' Read',
122 => ' Routine end',
123 => '|-',
124 => '|<code>Worse</code>',
125 => '|The opposite of <code>Better</code>.',
126 => '|',
127 => ' Sit myrockingchair',
128 => ' Worse mychair 8',
129 => ' Check myrockingchair',
130 => ' Set tempwoolchair',
131 => ' Value "Chair mychair is less than 8"',
132 => ' Read',
133 => ' Routine end',
134 => '|-',
135 => '|<code>Equal</code>',
136 => '|If both given arguments are equal, the active chair's value will be 1, otherwise 0.',
137 => '|',
138 => ' Sit myrockingchair',
139 => ' Equal mychair 8',
140 => ' Check myrockingchair',
141 => ' Set tempwoolchair',
142 => ' Value "Chair mychair is exactly 8"',
143 => ' Read',
144 => ' Routine end',
145 => '|-',
146 => '|<code>Read</code>',
147 => '|Prints the value of the active chair to the console.',
148 => '|',
149 => ' Sit mywoolchair',
150 => ' Value "Hello, World!"',
151 => ' Read',
152 => '|-',
153 => '|<code>Etch</code>',
154 => '|Asks for input. The inputted text gets converted to the type of the active chair.',
155 => '|',
156 => ' Sit mywoolchair',
157 => ' Value "Please input age: "',
158 => ' Read',
159 => ' Sit mychair',
160 => ' Etch',
161 => ' Sit mywoolchair',
162 => ' Value "You are "',
163 => ' Sit otherwoolchair',
164 => ' Copy mychair',
165 => ' Sit anotherwoolchair',
166 => ' Value " years old."',
167 => ' Sit mywoolchair',
168 => ' Deconstruct otherwoolchair',
169 => ' Deconstruct anotherwoolchair',
170 => ' Add otherwoolchair',
171 => ' Add anotherwoolchair',
172 => ' Read',
173 => '|-',
174 => '|<code>While</code>, <code>Finish</code> and <code>Loop</code>',
175 => '|<code>While</code> is a standard while loop, using the first argument as its condition. End with <code>Routine end</code>. <code>Finish</code> ends the loop completely, as if the condition was set to false and it would skip to the end of the loop. <code>Loop</code> restarts the loop.',
176 => '|',
177 => ' Sit mychair',
178 => ' Value 8',
179 => ' Sit myrockingchair',
180 => ' Value 1',
181 => ' While myrockingchair',
182 => ' Reconstruct mywool',
183 => ' Sit mywool',
184 => ' Etch',
185 => ' Sit otherrockingchair',
186 => ' Deconstruct mywool',
187 => ' Equal mywool f',
188 => ' Check otherrockingchair',
189 => ' Finish',
190 => ' Routine end',
191 => ' Equal mywool l',
192 => ' Check otherrockingchair',
193 => ' Loop',
194 => ' Routine end',
195 => ' Reconstruct mychair',
196 => ' Sit mychair',
197 => ' Sub 1',
198 => ' Sit myrockingchair',
199 => ' Deconstruct mychair',
200 => ' Worse mychair 0',
201 => ' Routine end',
202 => '|-',
203 => '|<code>Place</code>',
204 => '|Places the human in the first argument on the activated chair.',
205 => '|',
206 => ' Sit mychair',
207 => ' Place myhuman',
208 => '|-',
209 => '|<code>Sleep</code>',
210 => '|Waits n seconds, n being the value of the active chair.',
211 => '|',
212 => ' Sit tempchair',
213 => ' Value 2',
214 => ' Sleep',
215 => '|-',
216 => '|<code>Pack</code>',
217 => '|Saves the value of the active chair to a file, given by the first argument.',
218 => '|',
219 => ' Sit tempwoolchair',
220 => ' Value "/path/to/file.txt"',
221 => ' Sit mywoolchair',
222 => ' Value "The quick brown fox jumps over the lazy fox."',
223 => ' Deconstruct tempwoolchair',
224 => ' Pack tempwoolchair',
225 => '|-',
226 => '|<code>Unpack</code>',
227 => '|Reads from a file to the active chair. Filepath given by second argument.',
228 => '|',
229 => ' Sit tempwoolchair',
230 => ' Value "/path/to/file.txt"',
231 => ' Sit mywoolchair',
232 => ' Deconstruct tempwoolchair',
233 => ' Unpack tempwoolchair',
234 => ' Read',
235 => '|-',
236 => '|<code>Automate</code>, <code>Return</code> and <code>Call</code>',
237 => '|Define a function. Done as <code>Automate FunctionName chair MyArgument chair OtherArgument</code>. If an argument is a human, it reads and writes to that variable. Otherwise, it reads and writes to a temporary list of variables, that gets cleared after the function ends. A human named "ActivePointer" and a chair named "ActiveChair" both get added. <code>Return</code> returns its argument. <code>Call</code> calls the function in the first argument.',
238 => '|',
239 => ' Automate Abs rockingchair min',
240 => ' Construct chair tempchair',
241 => ' Value -1',
242 => ' Construct rockingchar temprocker',
243 => ' Deconstruct ActiveChair',
244 => ' Worse ActiveChair 0',
245 => ' Reconstruct ActiveChair',
246 => ' Sit ActiveChair',
247 => ' Check temprocker',
248 => ' Mult tempchair',
249 => ' Routine end',
250 => ' Check min',
251 => ' Mult tempchair',
252 => ' Routine end',
253 => ' Return ActiveChair',
254 => ' Routine end',
255 => ' ',
256 => ' Construct chair mychair',
257 => ' Value -3',
258 => ' Call Abs 0',
259 => ' Read //prints 3',
260 => ' Value -7',
261 => ' Call Abs 1',
262 => ' Read //prints -7',
263 => ' Value 9',
264 => ' Call Abs 0',
265 => ' Read //prints 9',
266 => ' Value 4',
267 => ' Call Abs 1',
268 => ' Read //prints -4',
269 => '|}',
270 => '',
271 => '==Variable types==',
272 => '{| class="wikitable"',
273 => '!Type !!Name in code !!Description',
274 => '|-',
275 => '|Chair',
276 => '|<code>chair</code>',
277 => '|An integer.',
278 => '|-',
279 => '|Throne<ref group="note" name="thronename">A throne is much more detailed than most other chairs, similar to how a float is much more detailed than an integer.</ref>',
280 => '|<code>throne</code>',
281 => '|A floating point number, also known as a float.',
282 => '|-',
283 => '|Rocking chair',
284 => '|<code>rockingchair</code>',
285 => '|A boolean. Either true (1) or false (0).',
286 => '|-',
287 => '|Wool',
288 => '|<code>wool</code>',
289 => '|A single character.',
290 => '|-',
291 => '|Wool chair<ref group="note" name="woolpun">This was intended as a pun, as I thought that wool was made out of string (for whatever reason.)</ref>',
292 => '|<code>woolchair</code>',
293 => '|A string.',
294 => '|-',
295 => '|Human',
296 => '|<code>human</code>',
297 => '|Pointer. When using this in any command other than <code>Place</code>, it acts as if it were the chair.',
298 => '|}',
299 => '==Example Programs==',
300 => '===Hello World===',
301 => '<code>',
302 => 'Construct woolchair printvalue',
303 => 'Value "Hello, World!"',
304 => 'Read',
305 => '</code>',
306 => '===Quine===',
307 => '<ref group="note" name="quinenote">This may not work. I have bad memory, but when I tested this by copying and pasting in Notepad, it worked. All I know for sure, is that this is very unoptimized.</ref>',
308 => '',
309 => ' Construct woolchair pv',
310 => ' Value "Construct woolchair pv',
311 => ' Value "',
312 => ' Add "',
313 => ' Mult 2',
314 => ' Construct woolchair pt',
315 => ' Value "Add "',
316 => ' Add "',
317 => ' Construct woolchair val',
318 => ' Value "Value "',
319 => ' Add "',
320 => ' Construct woolchair mid',
321 => ' Value "',
322 => ' Mult 2',
323 => ' Construct woolchair pt',
324 => ' "',
325 => ' Construct woolchair end',
326 => ' Value "',
327 => ' Construct woolchair val',
328 => ' "',
329 => ' Construct woolchair end2',
330 => ' Value "',
331 => ' Construct woolchair mid',
332 => ' "',
333 => ' Construct woolchair cend',
334 => ' Value "',
335 => ' Construct woolchair end',
336 => ' "',
337 => ' Construct woolchair cend2',
338 => ' Value "',
339 => ' Construct woolchair end2',
340 => ' "',
341 => ' Construct woolchair cendc',
342 => ' Value "',
343 => ' Construct woolchair cend"',
344 => ' Construct woolchair cendf',
345 => ' Value "',
346 => ' Construct woolchair final',
347 => ' Deconstruct pv',
348 => ' Deconstruct pt',
349 => ' Deconstruct val',
350 => ' Deconstruct mid',
351 => ' Deconstruct end',
352 => ' Deconstruct end2',
353 => ' Deconstruct cend',
354 => ' Deconstruct cend2',
355 => ' Deconstruct cendc',
356 => ' Deconstruct cendf',
357 => ' Deconstruct cendw',
358 => ' Add pv',
359 => ' Add ',
360 => ' ',
361 => ' Add pt',
362 => ' Add mid',
363 => ' Add val',
364 => ' Add pt',
365 => ' Add ',
366 => ' ',
367 => ' Add pt',
368 => ' Add end',
369 => ' Add val',
370 => ' Add val',
371 => ' Add ',
372 => ' ',
373 => ' Add pt',
374 => ' Add end2',
375 => ' Add val',
376 => ' Add mid',
377 => ' Add qu',
378 => ' Add cend',
379 => ' Add val',
380 => ' Add end',
381 => ' Add qu',
382 => ' Add cend2',
383 => ' Add val',
384 => ' Add end2',
385 => ' Add qu',
386 => ' Add cendc',
387 => ' Add ',
388 => ' ',
389 => ' Add val',
390 => ' Add cend',
391 => ' Add qu',
392 => ' Add cendc',
393 => ' Add two',
394 => ' Add ',
395 => ' ',
396 => ' Add val',
397 => ' Add cend2',
398 => ' Add qu',
399 => ' Add cendc',
400 => ' Add c',
401 => ' Add ',
402 => ' ',
403 => ' Add val',
404 => ' Add cendc',
405 => ' Add qu',
406 => ' Add ',
407 => ' ',
408 => ' Add cendc',
409 => ' Add f',
410 => ' Add ',
411 => ' ',
412 => ' Add val',
413 => ' Add cendf',
414 => ' Add qu',
415 => ' Add',
416 => ' ',
417 => ' Add cendw',
418 => ' Add q',
419 => ' Add u',
420 => ' Add ',
421 => ' ',
422 => ' Add val',
423 => ' Add ',
424 => ' ',
425 => ' Add cendw',
426 => ' Add t',
427 => ' Add w',
428 => ' Add o',
429 => ' Add ',
430 => ' ',
431 => ' Add val',
432 => ' Sub 1',
433 => ' Add two',
434 => ' Add ',
435 => ' ',
436 => ' Add cendc',
437 => ' Add w',
438 => ' Add ',
439 => ' ',
440 => ' Add val',
441 => ' Add cendw',
442 => ' Add qu',
443 => ' Add ',
444 => ' ',
445 => ' Add cendf',
446 => ' Read"',
447 => ' Construct wool qu',
448 => ' Value "',
449 => ' Construct wool two',
450 => ' Value 2',
451 => ' Construct woolchair cendw',
452 => ' Value "',
453 => ' Construct wool "',
454 => ' Construct woolchair final',
455 => ' Deconstruct pv',
456 => ' Deconstruct pt',
457 => ' Deconstruct val',
458 => ' Deconstruct mid',
459 => ' Deconstruct end',
460 => ' Deconstruct end2',
461 => ' Deconstruct cend',
462 => ' Deconstruct cend2',
463 => ' Deconstruct cendc',
464 => ' Deconstruct cendf',
465 => ' Deconstruct cendw',
466 => ' Add pv',
467 => ' Add ',
468 => ' ',
469 => ' Add pt',
470 => ' Add mid',
471 => ' Add val',
472 => ' Add pt',
473 => ' Add ',
474 => ' ',
475 => ' Add pt',
476 => ' Add end',
477 => ' Add val',
478 => ' Add val',
479 => ' Add ',
480 => ' ',
481 => ' Add pt',
482 => ' Add end2',
483 => ' Add val',
484 => ' Add mid',
485 => ' Add qu',
486 => ' Add cend',
487 => ' Add val',
488 => ' Add end',
489 => ' Add qu',
490 => ' Add cend2',
491 => ' Add val',
492 => ' Add end2',
493 => ' Add qu',
494 => ' Add cendc',
495 => ' Add ',
496 => ' ',
497 => ' Add val',
498 => ' Add cend',
499 => ' Add qu',
500 => ' Add cendc',
501 => ' Add two',
502 => ' Add ',
503 => ' ',
504 => ' Add val',
505 => ' Add cend2',
506 => ' Add qu',
507 => ' Add cendc',
508 => ' Add c',
509 => ' Add ',
510 => ' ',
511 => ' Add val',
512 => ' Add cendc',
513 => ' Add qu',
514 => ' Add ',
515 => ' ',
516 => ' Add cendc',
517 => ' Add f',
518 => ' Add ',
519 => ' ',
520 => ' Add val',
521 => ' Add cendf',
522 => ' Add qu',
523 => ' Add',
524 => ' ',
525 => ' Add cendw',
526 => ' Add q',
527 => ' Add u',
528 => ' Add ',
529 => ' ',
530 => ' Add val',
531 => ' Add ',
532 => ' ',
533 => ' Add cendw',
534 => ' Add t',
535 => ' Add w',
536 => ' Add o',
537 => ' Add ',
538 => ' ',
539 => ' Add val',
540 => ' Sub 1',
541 => ' Add two',
542 => ' Add cendc',
543 => ' Add w',
544 => ' Add ',
545 => ' ',
546 => ' Add val',
547 => ' Add cendw',
548 => ' Add qu',
549 => ' Add ',
550 => ' ',
551 => ' Add cendf',
552 => ' Read',
553 => '===Truth machine===',
554 => ' Construct woolchair zero',
555 => ' Value "0"',
556 => ' Construct woolchair one',
557 => ' Value "1"',
558 => ' Construct woolchair input',
559 => ' Deconstruct zero',
560 => ' Deconstruct one',
561 => ' Etch',
562 => ' Construct rockingchair iszero',
563 => ' Deconstruct input',
564 => ' Equal input zero',
565 => ' Check iszero',
566 => ' Reconstruct zero',
567 => ' Sit zero',
568 => ' Read',
569 => ' End routine',
570 => ' Sit iszero',
571 => ' Rock',
572 => ' Check iszero',
573 => ' Equal input one',
574 => ' Check iszero',
575 => ' Reconstruct one',
576 => ' Sit one',
577 => ' While iszero',
578 => ' Read',
579 => ' End routine //while',
580 => ' End routine //is one',
581 => ' End routine //isnt zero',
582 => '',
583 => '==References==',
584 => '<references group="note"/>',
585 => '',
586 => '[[Category:Languages]] [[Category:Joke_Languages]] [[Category:2026]] [[Category:Languages]] [[Category:Unimplemented]] [[Category:Thematic]]'
] |