Page namespace (page_namespace) | 0 |
Page title (without namespace) (page_title) | 'PUSH' |
Full page title (page_prefixedtitle) | 'PUSH' |
Old content model (old_content_model) | '' |
New content model (new_content_model) | 'wikitext' |
Old page wikitext, before the edit (old_wikitext) | '' |
New page wikitext, after the edit (new_wikitext) | 'PUSH is an esoteric programming language created by [[User:Expliked]] in November 2020. It uses a memory tape that can be appended (pushed) to, and removed (pulled) from.
PUSH can be stored in a normal <code>*.txt</code> file.
==Syntax==
{| class="wikitable" style="text-align:center"
|-
! Keyword
! Meaning
|-
| <code><nowiki>PUSH: (value);</nowiki></code>
| Appends the value to the memory tape.
|-
| <code><nowiki>PULL;</nowiki></code>
| Removes the last value from the memory tape.
|-
| <code><nowiki>OUTPUT;</nowiki></code>
| Outputs the last value of the memory tape as an ASCII character.
|-
| <code><nowiki>INPUT;</nowiki></code>
| Prompts for user input, and for each character entered, it will be appended to the memory tape.
|-
| <code><nowiki>EMPTY;</nowiki></code>
| "Empties" the memory tape. Prints out all values individually as ASCII chars. Clears the memory tape.
|-
| <code><nowiki>CLEAR;</nowiki></code>
| Clears the memory tape.
|-
| <code><nowiki>"</nowiki></code>
| Denotes the start and end of a comment.
|}
==Examples==
"Hello, World!" program:
"Hello, "
PUSH: 72;
PUSH: 101;
PUSH: 108;
PUSH: 108;
PUSH: 111;
PUSH: 44;
PUSH: 32;
"World!"
PUSH: 87;
PUSH: 111;
PUSH: 114;
PUSH: 108;
PUSH: 100;
PUSH: 33;
PUSH: 10;
EMPTY;
Cat program:
INPUT;
EMPTY;
99 Bottles of Beer: (it works!)
https://pastebin.com/WdpYzSVx' |
Lines added in edit (added_lines) | [
0 => 'PUSH is an esoteric programming language created by [[User:Expliked]] in November 2020. It uses a memory tape that can be appended (pushed) to, and removed (pulled) from.',
1 => 'PUSH can be stored in a normal <code>*.txt</code> file.',
2 => '',
3 => '==Syntax==',
4 => '',
5 => '{| class="wikitable" style="text-align:center"',
6 => '|-',
7 => '! Keyword',
8 => '! Meaning',
9 => '|-',
10 => '| <code><nowiki>PUSH: (value);</nowiki></code>',
11 => '| Appends the value to the memory tape.',
12 => '|-',
13 => '| <code><nowiki>PULL;</nowiki></code>',
14 => '| Removes the last value from the memory tape.',
15 => '|-',
16 => '| <code><nowiki>OUTPUT;</nowiki></code>',
17 => '| Outputs the last value of the memory tape as an ASCII character.',
18 => '|-',
19 => '| <code><nowiki>INPUT;</nowiki></code>',
20 => '| Prompts for user input, and for each character entered, it will be appended to the memory tape.',
21 => '|-',
22 => '| <code><nowiki>EMPTY;</nowiki></code>',
23 => '| "Empties" the memory tape. Prints out all values individually as ASCII chars. Clears the memory tape.',
24 => '|-',
25 => '| <code><nowiki>CLEAR;</nowiki></code>',
26 => '| Clears the memory tape.',
27 => '|-',
28 => '| <code><nowiki>"</nowiki></code>',
29 => '| Denotes the start and end of a comment.',
30 => '|}',
31 => '',
32 => '==Examples==',
33 => '',
34 => '"Hello, World!" program:',
35 => '',
36 => ' "Hello, "',
37 => ' PUSH: 72;',
38 => ' PUSH: 101;',
39 => ' PUSH: 108;',
40 => ' PUSH: 108;',
41 => ' PUSH: 111;',
42 => ' PUSH: 44;',
43 => ' PUSH: 32; ',
44 => ' ',
45 => ' "World!"',
46 => ' PUSH: 87;',
47 => ' PUSH: 111;',
48 => ' PUSH: 114;',
49 => ' PUSH: 108;',
50 => ' PUSH: 100;',
51 => ' PUSH: 33;',
52 => ' PUSH: 10;',
53 => ' ',
54 => ' EMPTY;',
55 => '',
56 => 'Cat program:',
57 => ' INPUT;',
58 => ' EMPTY;',
59 => '',
60 => '99 Bottles of Beer: (it works!)',
61 => ' https://pastebin.com/WdpYzSVx'
] |