This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
67 lines (61 loc) · 2 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="src/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="src/doc.css">
<title>magenta programming language</title>
</head>
<body>
<section>
<h1>magenta</h1>
<p>magenta is a mid-level type-safe language. it's immutable where convenient, does not have null, and aims to keep code as short as possible whilst maintaining not being absolutely ridiculous. the syntax itself borrows elements from the bourne shell, f#, typescript, and go.</p>
</section>
<section>
<h1>example</h1>
<pre><span class="keyword">namespace</span> main
<span class="keyword">include</span> math
<span class="keyword">include</span> tty
<span class="keyword">int</span> sum(x <span class="keyword">int</span>, y <span class="keyword">int</span>) {
<span class="keyword">return</span> x + y
}
sum(<span class="value">3</span>, <span class="value">5</span>) | math.itoa | tty.println
<span class="comment">// → 8</span>
</pre>
</section>
<section>
<h1>roadmap</h1>
<ul class="todo">
<li>preprocessor <span class="note">(unimplemented)</span></li>
<li>syntax (<a href="docs/syntax.html">read</a>)</li>
<li>lexer</li>
<li>parser <span class="note">← we are here</span></li>
<li>c compiler</li>
<li class="note">(prototype complete)</li>
<li>rewrite to be self-hosting</li>
<li>js compiler</li>
<li>vm + vm compiler</li>
</ul>
</section>
<section>
<h1>sitemap</h1>
<ul>
<li><a href="/">home</a></li>
<li><a href="journal.html">journal</a></li>
<li>docs/<a href="docs/language-design.html">language design</a></li>
<li>docs/<a href="docs/syntax.html">syntax</a></li>
</ul>
</section>
<footer>
<hr>
<div class="copyright">
<p>magenta lang</p>
<p>
<a href="https://github.com/magentalang">github</a>
</p>
</div>
</footer>
</body>
</html>