New page wikitext, after the edit (new_wikitext) | '
{{WIP}}
<b><i>Note: Dango is still very early in development and [[User:RaiseAfloppaFan3925|the creator]] is stupid, so take any inconsistencies or complexities with an ocean's worth of salt.</i></b>
{{ infobox proglang
| name = Dango
| author = [[User:RaiseAfloppaFan3925]]
| year = 2025
}}
Dango is an esolang by [[User:RaiseAfloppaFan3925]] that revolves around [https://en.wikipedia.org/wiki/Dango dango], a Japanese dumpling.
== Code ==
Code in Dango are stored in dango (who could have guessed), where each instruction is wrapped in parentheses <code>()</code> with the line ending with a stick <code>----</code>. The dango is executed right-to-left and operates on a stack.
== Operations ==
=== "Regular" operations === <!-- lack of a better word -->
These instructions are stored in the dango and as such must be stored in parentheses.
{| class = "wikitable plainpres" width = "80%"
! Operation
! Example
! Action
|-
| <code>()</code>
| <code>()----</code>
| Null value
|-
| <code>(')</code>
| <code>(Hello, world!)(')----</code>
| String
|-
| <code>(j)</code>
| <code>(4)(j)----</code>
| Jumps to the line number of the operand to the right. If there is no operand (example: <code>(j)----</code> or <code>()(j)----</code>), then the top of the stack is used.
|}
=== Function calls ===
In Dango, a function call has the following syntax:
<pre>
(arg N)(arg N - 1)...(arg3)(arg2)(arg1)(arg count)(:function)
</pre>
=== Dango operations ===
These operations operate on the dango memory in the program.
{| class = "wikitable plainpres" width = "80%"
! Operation
! Example
! Action
|-
| <code>eat</code>
| <code>eat 3</code>
| Removes the dango at the specified index from memory and prints it. If there is no index given, then the top of the stack is popped and printed.
|}
== Example Programs ==
=== Hello world ===
<pre>
(Hello, world!)(')----
eat
</pre>
=== Truth Machine ===
<pre>
(5)(j)(while)(=)(0)(:input)----
(0)----
eat
(7)(j)----
(1)----
eat
(5)(j)----
</pre>
{{Category:2025}}
{{Category:Thematic}} <!-- I guess... -->' |
Lines added in edit (added_lines) | [
0 => '',
1 => '{{WIP}}',
2 => '',
3 => '<b><i>Note: Dango is still very early in development and [[User:RaiseAfloppaFan3925|the creator]] is stupid, so take any inconsistencies or complexities with an ocean's worth of salt.</i></b>',
4 => '',
5 => '{{ infobox proglang',
6 => '| name = Dango',
7 => '| author = [[User:RaiseAfloppaFan3925]]',
8 => '| year = 2025',
9 => '}}',
10 => '',
11 => 'Dango is an esolang by [[User:RaiseAfloppaFan3925]] that revolves around [https://en.wikipedia.org/wiki/Dango dango], a Japanese dumpling.',
12 => '',
13 => '== Code ==',
14 => '',
15 => 'Code in Dango are stored in dango (who could have guessed), where each instruction is wrapped in parentheses <code>()</code> with the line ending with a stick <code>----</code>. The dango is executed right-to-left and operates on a stack.',
16 => '',
17 => '== Operations ==',
18 => '',
19 => '=== "Regular" operations === <!-- lack of a better word -->',
20 => '',
21 => 'These instructions are stored in the dango and as such must be stored in parentheses.',
22 => '',
23 => '{| class = "wikitable plainpres" width = "80%"',
24 => '! Operation',
25 => '! Example',
26 => '! Action',
27 => '|-',
28 => '| <code>()</code>',
29 => '| <code>()----</code>',
30 => '| Null value',
31 => '|-',
32 => '| <code>(')</code>',
33 => '| <code>(Hello, world!)(')----</code>',
34 => '| String',
35 => '|-',
36 => '| <code>(j)</code>',
37 => '| <code>(4)(j)----</code>',
38 => '| Jumps to the line number of the operand to the right. If there is no operand (example: <code>(j)----</code> or <code>()(j)----</code>), then the top of the stack is used.',
39 => '|}',
40 => '',
41 => '=== Function calls ===',
42 => '',
43 => 'In Dango, a function call has the following syntax:',
44 => '',
45 => '<pre>',
46 => '(arg N)(arg N - 1)...(arg3)(arg2)(arg1)(arg count)(:function)',
47 => '</pre>',
48 => '',
49 => '=== Dango operations ===',
50 => '',
51 => 'These operations operate on the dango memory in the program.',
52 => '',
53 => '{| class = "wikitable plainpres" width = "80%"',
54 => '! Operation',
55 => '! Example',
56 => '! Action',
57 => '|-',
58 => '| <code>eat</code>',
59 => '| <code>eat 3</code>',
60 => '| Removes the dango at the specified index from memory and prints it. If there is no index given, then the top of the stack is popped and printed.',
61 => '|}',
62 => '',
63 => '== Example Programs ==',
64 => '',
65 => '=== Hello world ===',
66 => '',
67 => '<pre>',
68 => '(Hello, world!)(')----',
69 => 'eat',
70 => '</pre>',
71 => '',
72 => '=== Truth Machine ===',
73 => '',
74 => '<pre>',
75 => '(5)(j)(while)(=)(0)(:input)----',
76 => '(0)----',
77 => 'eat',
78 => '(7)(j)----',
79 => '(1)----',
80 => 'eat',
81 => '(5)(j)----',
82 => '</pre>',
83 => '',
84 => '{{Category:2025}}',
85 => '{{Category:Thematic}} <!-- I guess... -->'
] |