-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrcc.html
More file actions
210 lines (151 loc) · 6.42 KB
/
rcc.html
File metadata and controls
210 lines (151 loc) · 6.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>RCC - The Quirky C Code Generator</title>
</head>
<body bgcolor="#ffffff" text="#000000">
<center>
<h1>████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒</h1>
<h2>RCC: The Quirky C Code Generator</h2>
<h3>⊹╰(⌣ʟ⌣)╯⊹ Building Tools Interactively!</h3>
</center>
<hr>
<h2>What is RCC?</h2>
<p>Picture this: You're sitting at your computer, wanting to write a simple C program. You open your text editor and... nothing. That blank screen stares back at you like an empty canvas that somehow feels more intimidating than inspiring. Where do you even start? Do you need includes? What's the syntax for a for loop again?
I'm 41 years old, and I've been tinkering with computers for decades. I'm not a professional programmer – I'm what you might call a "jack of all trades." I fix things, I build things, and most importantly, I like helping others learn. Over the years, I've noticed something: the tools we use to teach programming often feel like they were designed by robots, for robots. Where's the personality? Where's the fun?
That's why I built Roberto's Cooked C-generator, first it was in rc shell script. Now it's an AWK script that helps you build C programs interactively, complete with ASCII art, emoticons, and a personality that makes coding feel less like homework and more like playing with digital LEGOs.</p>
<h2>Features</h2>
<ul>
<li>Everything is a <a href="rccfs.html">file!</a></li>
<li>Build C code interactively with simple commands</li>
<li>No need to remember exact syntax</li>
<li>Friendly ASCII art and emoticons</li>
<li>Save and load your creations</li>
<li>Built in/for 9front</li>
<li>Perfect for learning or quick prototyping</li>
</ul>
<h2>Quick Start</h2>
<pre>
$ awk -f rcc.awk
████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
⊹╰(⌣ʟ⌣)╯⊹ Σ ?
</pre>
<p>Type <b>?</b> to see the menu!</p>
<h2>Menu Commands</h2>
<table border="1" cellpadding="5">
<tr><th>Command</th><th>What it does</th></tr>
<tr><td>i</td><td>Include headers (#include)</td></tr>
<tr><td>a</td><td>Add a function</td></tr>
<tr><td>v</td><td>Create variables</td></tr>
<tr><td>f</td><td>For loop (ascending)</td></tr>
<tr><td>F</td><td>For loop (descending)</td></tr>
<tr><td>W</td><td>While loop</td></tr>
<tr><td>q</td><td>If condition</td></tr>
<tr><td>;</td><td>Create a struct</td></tr>
<tr><td>c</td><td>Close block (})</td></tr>
<tr><td>V</td><td>View your code</td></tr>
<tr><td>S</td><td>Save to file</td></tr>
<tr><td>B</td><td>Build with 6c/6l</td></tr>
<tr><td>A</td><td>Adios (exit)</td></tr>
</table>
<h2>Example Session</h2>
<pre>
⊹╰(⌣ʟ⌣)╯⊹ Σ i
λ Header: u
λ Header: libc
λ Header:
⊹╰(⌣ʟ⌣)╯⊹ Σ v
λ Variable type: int
λ Variable name: i
λ Initial value: 0
λ Variable type: int
λ Variable name: number
λ Initial value: 0
λ Variable type: int
λ Variable name: total
λ Initial value: 0
λ Variable type:
λ Variable name:
⊹╰(⌣ʟ⌣)╯⊹ Σ a
λ Function name: main
λ Return type: void
λ Arguments: void
λ ▽
⊹╰(⌣ʟ⌣)╯⊹ Σ W
λ While condition: i < 5
λ ▽
⊹╰(⌣ʟ⌣)╯⊹ Σ s
λ Function name: print
λ Arguments: "Enter: %d: ", i+1
λ Function name: scanf
λ Arguments: "%d", &number
λ Function name:
⊹╰(⌣ʟ⌣)╯⊹ Σ v
λ Variable type:
λ Variable name: total
λ Initial value: total + number
λ Variable type:
λ Variable name:
⊹╰(⌣ʟ⌣)╯⊹ Σ 1
λ Increment Variable: i
⊹╰(⌣ʟ⌣)╯⊹ Σ c
λ ▲
⊹╰(⌣ʟ⌣)╯⊹ Σ s
λ Function name: print
λ Arguments: "total: %d\n", total
λ Function name: print
λ Arguments: "average: %d\n", total/5
λ Function name:
⊹╰(⌣ʟ⌣)╯⊹ Σ c
λ ▲
⊹╰(⌣ʟ⌣)╯⊹ Σ S
λ Output filename: w0.c
#include < u.h>
#include < libc.h>
int i = 0;
int number = 0;
int total = 0;
void
main(void)
{
while(i < 5) {
print("Enter: %d: ", i+1);
scanf("%d", &number);
total = total + number;
i++;
}
print("total: %d\n", total);
print("average: %d\n", total/5);
}
⊹╰(⌣ʟ⌣)╯⊹ Σ B
λ Building: w0
w0.c:11 function not declared: scanf
w0.c:18 syntax error, last name: 5
??none??: cannot open file: w0.6
λ ❤
</pre>
<p><a href="rcc/rcc.awk">Download rcc.awk</a></p>
<p><a href="rccfs.html">Read more...</a></p>
<h2>Philosophy</h2>
<p>Learning to code shouldn't feel like climbing a mountain. Sometimes you just want to build something without worrying about every semicolon and bracket. RCC lets you focus on the logic while it handles the syntax. I just wanted to share a quirky toy!</p>
<p>Why does the world need quirky tools like RCC? Because:</p>
<ul>
<li>Diversity drives innovation - Different approaches lead to new insights</li>
<li>One size doesn't fit all - Some people learn better with personality</li>
<li>Fun is functional - Enjoyable tools get used more and lead to better outcomes</li>
<li>Simplicity has value - Not everything needs to be enterprise-grade</li>
<li>Personality creates connection - We bond with tools that feel alive</li>
</ul>
<h2>Conclusion: Building Bridges with Code</h2>
<p>RCC is more than just a C code generator. It's a bridge between human creativity and computer syntax. It's proof that programming tools don't have to be sterile and intimidating. Most importantly, it's a reminder that the best tools are often built by people who aren't trying to change the world – they're just trying to solve their own problems in ways that make them smile.
As a 41-year-old jack of all trades, I've learned that the best solutions often come from unexpected places. A professional programmer might never think to build a C generator in AWK with ASCII art and emoticons. But sometimes that outside perspective is exactly what's needed.
Whether you use RCC to learn C, teach others, or just play around with code generation, I hope it brings a smile to your face. Because at the end of the day, if we're not having fun building things, what's the point?
Remember: programming is just another form of building. And building should be joyful.</p>
<pre>λ ❤ Happy Coding! ⊹╰(⌣ʟ⌣)╯⊹</pre>
<p>P.S. If you build something cool with RCC, or if you create your own quirky tool inspired by this approach, I'd love to hear about it. The world needs more builders who aren't afraid to do things differently.</p>
<hr>
<center>
<pre>Made with 9front/acme λ ❤</pre>
</center>
</body>
</html>