-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
135 lines (125 loc) · 6.31 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
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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<title>ooc » The ooc programming language</title>
<link rel="icon" href="/favicon.ico">
<link rel="stylesheet" href="/assets/main.css">
<link rel="stylesheet" href="/assets/pygments.css">
<link href="https://fonts.googleapis.com/css?family=Radley:regular&text=OC" rel="stylesheet" type="text/css" >
<link href="https://fonts.googleapis.com/css?family=Lato:100,100italic,300,300italic,400,400italic,700,700italic,900,900italic" rel="stylesheet" type="text/css" >
<!-- Cool stats stuff for nanoc :) -->
<meta name="generator" content="nanoc 4.1.3">
</head>
<body>
<header>
<div class="header-content">
<nav class="main">
<ol>
<li class="home"><a href="/"><img src="/assets/images/logo-nav.png" alt="Home"></a></li>
<li><a href="/about/">About</a></li>
<li><a href="/install/">Install</a></li>
<li><a href="/docs/">Documentation</a></li>
<li><a href="/community/">Community</a></li>
<li><a href="/development/">Development</a></li>
</ol>
</nav>
</div>
</header>
<div class="explanation">
<div class="explanation-content">
<p>ooc is a small programming language with a clear and concise syntax that compiles to C99.</p>
</div>
</div>
<div class="hero">
<div class="hero-content">
<pre>
<code class="language-ooc"><span class="nv">parse</span><span class="p">:</span> <span class="k">func</span> <span class="p">{</span>
<span class="nc">PropReader</span> <span class="k">new</span><span class="p">(</span><span class="nv">path</span><span class="p">,</span> <span class="nv">props</span><span class="p">)</span>
<span class="c">// parse deps</span>
<span class="nv">requires</span> <span class="o">:=</span> <span class="nv">props</span> <span class="nf">get</span><span class="p">(</span><span class="s2">"Requires"</span><span class="p">)</span>
<span class="k">if</span> <span class="p">(</span><span class="nv">requires</span><span class="p">)</span> <span class="p">{</span>
<span class="nv">deps</span> <span class="nf">addAll</span><span class="p">(</span><span class="nv">requires</span> <span class="nf">split</span><span class="p">(</span><span class="sc">','</span><span class="p">,</span> <span class="k">false</span><span class="p">)</span> <span class="nf">map</span> <span class="p">(</span><span class="o">|</span><span class="nv">dep</span><span class="o">|</span> <span class="nv">dep</span> <span class="nf">trim</span><span class="p">(</span><span class="s2">" \t"</span><span class="p">)))</span>
<span class="p">}</span>
<span class="p">}</span></code>
</pre>
</div>
</div>
<div class="ticker">
<div class="ticker-content">
The current release is 0.9.10, released on July 11th, 2015. Check out the <a href="/release-notes/">release notes</a> for details.
<!-- The current release is 0.9.6, released on February 20th, 2013.
Check out the <a href="/release-notes">release notes</a> for details. -->
</div>
</div>
<div class="chooser">
<div class="chooser-unit install-rock">
<h2><a href="install/">Install rock</a></h2>
<p>The first step to be able to program in ooc is to install rock, its compiler.
It's written in ooc, too! Read more about </p>
</div>
<div class="chooser-unit take-the-tutorial">
<h2><a href="docs/tutorial/">Take the tutorial</a></h2>
<p>Embark on a ten-minute journey into the land of ooc programming. You'll write
a small program and learn about the basics along the way.</p>
</div>
<div class="chooser-unit learn-more">
<h2><a href="docs/">Learn more</a></h2>
<p>Read all about ooc, from the language itself, to its implementation,
tools to make your life easier, a collection of useful libraries, and more!</p>
</div>
</div>
<div class="support">
<div class="support-content">
<h2>
ooc loves you!
</h2>
<p>
ooc is, and always will be, provided free of charge. Development is voluntary and happens entirely in free time.
If you use ooc and like it, please consider showing your token of support by
smiling at your screen.
</p>
</div>
</div>
<footer>
<div class="footer-content">
<nav><section class="about"><h3>About</h3>
<ul>
<li><a href="/about/#history">History</a></li>
<li><a href="/about/#why-use-ooc">Why use ooc?</a></li>
<li><a href="/about/#similar-projects">Alternatives</a></li>
</ul></section><section class="install"><h3>Install</h3>
<ul>
<li><a href="/install/#quick-install">Quick install</a></li>
<li><a href="/install/#installing-from-git">Installing from Git</a></li>
<li><a href="/install/#post-install-instructions">Post-install instructions</a></li>
<li><a href="/install/#installing-sam">Installing sam</a></li>
</ul></section><section class="documentation"><h3>Documentation</h3>
<ul>
<li><a href="/docs/tutorial/">Tutorial</a></li>
<li><a href="/docs/lang/">Language</a></li>
<li><a href="/docs/sdk/">SDK</a></li>
<li><a href="/docs/tools/">Tools</a></li>
<li><a href="/docs/tools/rock/">Implementation</a></li>
<li><a href="/docs/kaputt/">Troubleshooting</a></li>
<li><a href="/docs/glossary/">Glossary</a></li>
</ul></section><section class="community"><h3>Community</h3>
<ul>
<li><a href="http://groups.google.com/group/ooc-lang">Discussion group</a></li>
<li><a href="http://github.com/ooc-lang/rock/issues">Issue tracker</a></li>
<li><a href="irc://chat.freenode.net/#ooc-lang">IRC channel</a></li>
<li><a href="http://github.com/ooc-lang/rock/wiki">Wiki</a></li>
<li><a href="/development/">Development</a></li>
<li><a href="http://pledgie.com/campaigns/21363">Donate</a></li>
</ul></section></nav>
<div class="fine-print">
<p>
ooc © 2009-2015 <a href="http://amos.me/">Amos Wenger</a>. The content of this website is licensed under a <a href="http://creativecommons.org/licenses/by-sa/3.0/">CC BY-SA 3.0 License</a>.
rock is licensed under the MIT license. Design based on the <a href="http://nanoc.ws/">nanoc web site</a> by <a href="http://stoneship.org/">Denis Defreyne</a> and used with permission.
<a href="http://entypo.com/">Entypo</a>By Daniel Bruce.
</p>
</div>
</div>
</footer>
</body>
</html>