New page wikitext, after the edit (new_wikitext) | 'Nah-bro is a [[esoteric programming language]] created by [[User:BigGreenHat]]
Comments start with #
Top value of the stack is 0
Uses the .nah file extension
== Instructions ==
<code>
* (number) my ass # Append to stack
* (index) go touch grass # Print
* make (op1) fuck (op2) # Add and append result to stack
* (op1) and (op2) had a miscarriage # Subtract and append result to stack
* make (op1) get (op2) pregnant # Multiply and append result to stack
* make (op1) perform lobotomy on (op2) # Divide and append result to stack
* let (index) cut the line # Pop index and push to top
* (index) get out # Pop
* (index) present to the class # Get input with prompt at stack index and append result to stack
* what was the (number) thing you said (index) # Get character of string and append result to stack
* (index) needs more character development # Convert to character (decimal) and append result to stack
* (index) said he has a lot of girls if (he or she) is lying i would #(if true) [#(if false)] [#comments] # If <= 0
* (index) said she has a lot of guys if she is lying i would #(if true) [#(if false)] [#comments] # If <= 0
* (index) has too much main character energy # Convert to UTF-8 (ascii) code and append result to stack
* decapitate (index) # Cast to integer and append result to stack
* recapitate (index) # Cast to string and append result to stack
* repeat that (number | inf[inite]) more times # Repeats last operation specified number of times
* commit mass murder but leave a note (number) # Exits with exit code</code>
== Numbers or Indexes ==
Numbers and Indexes work how you expect with 1 being 1, 2 being 2, etc.
But there is also support for ranges, for example;
1,2,3 becomes [1,2,3]
1-3 becomes [1,2,3]
1x3 becomes [1,1,1]
The instruction will run the shortest range times iterating through each, for example<br>
<code>some instruction 1,2 1x2</code><br>
is the same as<br>
<code>some instruction 1 1<br>
some instruction 2 1</code>
== Examples ==
=== Cat program ===
<code>20 my ass
0 needs more character development
0 present to the class
0 go touch grass</code>
=== Hello, World! ===
<code>101,108,108,111,44,32,87,111,114,108,100,33,72 my ass
0-12 needs more character development
make 0x12 fuck 12x12
0 go touch grass</code>
=== Truth Machine ===
<code>62,32 my ass
0-1 needs more character development
make 1 fuck 0
0 my ass
1 present to the class
decapitate 0
0 said he has a lot of girls if he is lying i would #1 go touch grass
0 said he has a lot of girls if he is lying i would #commit mass murder but leave a note 0
1 my ass
0 go touch grass
repeat that inf more times</code>' |
Unified diff of changes made by edit (edit_diff) | '@@ -1,0 +1,87 @@
+Nah-bro is a [[esoteric programming language]] created by [[User:BigGreenHat]]
+
+
+Comments start with #
+
+Top value of the stack is 0
+
+Uses the .nah file extension
+== Instructions ==
+<code>
+* (number) my ass # Append to stack
+* (index) go touch grass # Print
+* make (op1) fuck (op2) # Add and append result to stack
+* (op1) and (op2) had a miscarriage # Subtract and append result to stack
+* make (op1) get (op2) pregnant # Multiply and append result to stack
+* make (op1) perform lobotomy on (op2) # Divide and append result to stack
+* let (index) cut the line # Pop index and push to top
+* (index) get out # Pop
+* (index) present to the class # Get input with prompt at stack index and append result to stack
+* what was the (number) thing you said (index) # Get character of string and append result to stack
+* (index) needs more character development # Convert to character (decimal) and append result to stack
+* (index) said he has a lot of girls if (he or she) is lying i would #(if true) [#(if false)] [#comments] # If <= 0
+* (index) said she has a lot of guys if she is lying i would #(if true) [#(if false)] [#comments] # If <= 0
+* (index) has too much main character energy # Convert to UTF-8 (ascii) code and append result to stack
+* decapitate (index) # Cast to integer and append result to stack
+* recapitate (index) # Cast to string and append result to stack
+* repeat that (number | inf[inite]) more times # Repeats last operation specified number of times
+* commit mass murder but leave a note (number) # Exits with exit code</code>
+== Numbers or Indexes ==
+Numbers and Indexes work how you expect with 1 being 1, 2 being 2, etc.
+But there is also support for ranges, for example;
+
+1,2,3 becomes [1,2,3]
+
+1-3 becomes [1,2,3]
+
+1x3 becomes [1,1,1]
+
+The instruction will run the shortest range times iterating through each, for example<br>
+<code>some instruction 1,2 1x2</code><br>
+is the same as<br>
+<code>some instruction 1 1<br>
+some instruction 2 1</code>
+
+== Examples ==
+=== Cat program ===
+<code>20 my ass
+
+0 needs more character development
+
+0 present to the class
+
+0 go touch grass</code>
+
+
+=== Hello, World! ===
+<code>101,108,108,111,44,32,87,111,114,108,100,33,72 my ass
+
+0-12 needs more character development
+
+make 0x12 fuck 12x12
+
+0 go touch grass</code>
+
+
+=== Truth Machine ===
+<code>62,32 my ass
+
+0-1 needs more character development
+
+make 1 fuck 0
+
+0 my ass
+
+1 present to the class
+
+decapitate 0
+
+0 said he has a lot of girls if he is lying i would #1 go touch grass
+
+0 said he has a lot of girls if he is lying i would #commit mass murder but leave a note 0
+
+1 my ass
+
+0 go touch grass
+
+repeat that inf more times</code>
' |
Lines added in edit (added_lines) | [
0 => 'Nah-bro is a [[esoteric programming language]] created by [[User:BigGreenHat]]',
1 => '',
2 => '',
3 => 'Comments start with #',
4 => '',
5 => 'Top value of the stack is 0',
6 => '',
7 => 'Uses the .nah file extension',
8 => '== Instructions ==',
9 => '<code>',
10 => '* (number) my ass # Append to stack',
11 => '* (index) go touch grass # Print',
12 => '* make (op1) fuck (op2) # Add and append result to stack',
13 => '* (op1) and (op2) had a miscarriage # Subtract and append result to stack',
14 => '* make (op1) get (op2) pregnant # Multiply and append result to stack',
15 => '* make (op1) perform lobotomy on (op2) # Divide and append result to stack',
16 => '* let (index) cut the line # Pop index and push to top',
17 => '* (index) get out # Pop',
18 => '* (index) present to the class # Get input with prompt at stack index and append result to stack',
19 => '* what was the (number) thing you said (index) # Get character of string and append result to stack',
20 => '* (index) needs more character development # Convert to character (decimal) and append result to stack',
21 => '* (index) said he has a lot of girls if (he or she) is lying i would #(if true) [#(if false)] [#comments] # If <= 0',
22 => '* (index) said she has a lot of guys if she is lying i would #(if true) [#(if false)] [#comments] # If <= 0',
23 => '* (index) has too much main character energy # Convert to UTF-8 (ascii) code and append result to stack',
24 => '* decapitate (index) # Cast to integer and append result to stack',
25 => '* recapitate (index) # Cast to string and append result to stack',
26 => '* repeat that (number | inf[inite]) more times # Repeats last operation specified number of times',
27 => '* commit mass murder but leave a note (number) # Exits with exit code</code>',
28 => '== Numbers or Indexes ==',
29 => 'Numbers and Indexes work how you expect with 1 being 1, 2 being 2, etc.',
30 => 'But there is also support for ranges, for example;',
31 => '',
32 => '1,2,3 becomes [1,2,3]',
33 => '',
34 => '1-3 becomes [1,2,3]',
35 => '',
36 => '1x3 becomes [1,1,1]',
37 => '',
38 => 'The instruction will run the shortest range times iterating through each, for example<br>',
39 => '<code>some instruction 1,2 1x2</code><br>',
40 => 'is the same as<br>',
41 => '<code>some instruction 1 1<br>',
42 => 'some instruction 2 1</code>',
43 => '',
44 => '== Examples ==',
45 => '=== Cat program ===',
46 => '<code>20 my ass',
47 => '',
48 => '0 needs more character development',
49 => '',
50 => '0 present to the class',
51 => '',
52 => '0 go touch grass</code>',
53 => '',
54 => '',
55 => '=== Hello, World! ===',
56 => '<code>101,108,108,111,44,32,87,111,114,108,100,33,72 my ass',
57 => '',
58 => '0-12 needs more character development',
59 => '',
60 => 'make 0x12 fuck 12x12',
61 => '',
62 => '0 go touch grass</code>',
63 => '',
64 => '',
65 => '=== Truth Machine ===',
66 => '<code>62,32 my ass',
67 => '',
68 => '0-1 needs more character development',
69 => '',
70 => 'make 1 fuck 0',
71 => '',
72 => '0 my ass',
73 => '',
74 => '1 present to the class',
75 => '',
76 => 'decapitate 0',
77 => '',
78 => '0 said he has a lot of girls if he is lying i would #1 go touch grass',
79 => '',
80 => '0 said he has a lot of girls if he is lying i would #commit mass murder but leave a note 0',
81 => '',
82 => '1 my ass',
83 => '',
84 => '0 go touch grass',
85 => '',
86 => 'repeat that inf more times</code>'
] |