Page namespace (page_namespace) | 0 |
Page title (without namespace) (page_title) | 'Basic Stack' |
Full page title (page_prefixedtitle) | 'Basic Stack' |
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) | 'Basic Stack is an esolang by the user [[User:Nguyendinhtung2014|Nguyendinhtung2014]].It consists of a "transparent" stack (whick means any value in the stack can be looked at but only can we do actions with the top value), a register, push-pop commands, conditionals and gotos.
==Commands==
Fist, the stack was emptied and the register will get set to 0
Basic Stack has the following commands (note that commands with arguments will have it in the same line as the command (e.g push 1)):
{| class="wikitable"
|+ table of commands
|-
! Commands !! function
|-
| push || push the argument value on the stack
|-
| pop || pop the top value
|-
| + || add top 2 value, pop them and push them on the stack
|-
| - || pop value a, pop value b, push value b-a
|-
| set || set the register to the top value
|-
| cond || if the top value is the argument, execute the next line. If the condition isn't statisfied, skip it
|-
| condr || same as cond, but it looks at the value pointed to at the register pointer (stack[register])
|-
| goto || same as other esolang's goto
|-
| in || push the ASCII value of the next character in stdin stream
|-
| out || output the character correspond to the top value of the stack
|}' |
Unified diff of changes made by edit (edit_diff) | '@@ -1,0 +1,30 @@
+Basic Stack is an esolang by the user [[User:Nguyendinhtung2014|Nguyendinhtung2014]].It consists of a "transparent" stack (whick means any value in the stack can be looked at but only can we do actions with the top value), a register, push-pop commands, conditionals and gotos.
+==Commands==
+Fist, the stack was emptied and the register will get set to 0
+
+Basic Stack has the following commands (note that commands with arguments will have it in the same line as the command (e.g push 1)):
+{| class="wikitable"
+|+ table of commands
+|-
+! Commands !! function
+|-
+| push || push the argument value on the stack
+|-
+| pop || pop the top value
+|-
+| + || add top 2 value, pop them and push them on the stack
+|-
+| - || pop value a, pop value b, push value b-a
+|-
+| set || set the register to the top value
+|-
+| cond || if the top value is the argument, execute the next line. If the condition isn't statisfied, skip it
+|-
+| condr || same as cond, but it looks at the value pointed to at the register pointer (stack[register])
+|-
+| goto || same as other esolang's goto
+|-
+| in || push the ASCII value of the next character in stdin stream
+|-
+| out || output the character correspond to the top value of the stack
+|}
' |
Lines added in edit (added_lines) | [
0 => 'Basic Stack is an esolang by the user [[User:Nguyendinhtung2014|Nguyendinhtung2014]].It consists of a "transparent" stack (whick means any value in the stack can be looked at but only can we do actions with the top value), a register, push-pop commands, conditionals and gotos.',
1 => '==Commands==',
2 => 'Fist, the stack was emptied and the register will get set to 0',
3 => '',
4 => 'Basic Stack has the following commands (note that commands with arguments will have it in the same line as the command (e.g push 1)):',
5 => '{| class="wikitable"',
6 => '|+ table of commands',
7 => '|-',
8 => '! Commands !! function',
9 => '|-',
10 => '| push || push the argument value on the stack',
11 => '|-',
12 => '| pop || pop the top value',
13 => '|-',
14 => '| + || add top 2 value, pop them and push them on the stack',
15 => '|-',
16 => '| - || pop value a, pop value b, push value b-a',
17 => '|-',
18 => '| set || set the register to the top value',
19 => '|-',
20 => '| cond || if the top value is the argument, execute the next line. If the condition isn't statisfied, skip it',
21 => '|-',
22 => '| condr || same as cond, but it looks at the value pointed to at the register pointer (stack[register])',
23 => '|-',
24 => '| goto || same as other esolang's goto',
25 => '|-',
26 => '| in || push the ASCII value of the next character in stdin stream',
27 => '|-',
28 => '| out || output the character correspond to the top value of the stack',
29 => '|}'
] |