-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
235 lines (217 loc) · 13.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
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<!DOCTYPE HTML>
<!--
Spectral by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>The Cheddar Programming Language</title>
<link rel="icon" type="image/png" href="images/logo/lbox.png" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.4.0/styles/railscasts.min.css">
<script src="assets/js/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-78953317-2', 'auto');
ga('send', 'pageview');
</script>
<link rel="stylesheet" href="assets/css/main.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="assets/css/ie8.css" /><![endif]-->
<!--[if lte IE 9]><link rel="stylesheet" href="assets/css/ie9.css" /><![endif]-->
</head>
<body class="landing">
<!-- Changelog -->
<script>
var HW_config = {
selector: "#hw_badge", // CSS selector where to inject the badge
account: "0xWo6x" // your account ID
};
</script>
<script async src="//cdn.headwayapp.co/widget.js"></script>
<div id="hw_badge" style="position: fixed; top: .66em; left: 1em; z-index: 100000;"></div>
<!-- Page Wrapper -->
<div id="page-wrapper">
<!-- Header -->
<header id="header" class="alt">
<h1 style="padding-left: 3em; box-sizing: border-box;"><a href="index.html">Cheddar</a></h1>
<nav id="nav">
<ul>
<li class="special">
<a href="#menu" class="menuToggle"><span>Menu</span></a>
<div id="menu">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="#one" class="scrolly">Features</a></li>
<li><a href="#download" class="scrolly">Download</a></li>
<li><a href="gs.html">Getting Started</a></li>
<li><a href="http://docs.cheddar.vihan.org">Documentation</a></li>
</ul>
</div>
</li>
</ul>
</nav>
</header>
<!-- Banner -->
<section id="banner">
<div class="inner">
<h2>
<img src="images/logo/lbox.png" style="height: 1em"/>
Cheddar
</h2>
<p>The language<br />
that works for you</p>
<ul class="actions vertical">
<li><a href="#download" class="button special scrolly">Download</a>
<li><a href="http://github.com/cheddar-lang/Cheddar" class="button"><span class="icon fa-github"></span>GitHub</a></li>
</ul>
</div>
<a href="#one" class="more scrolly">Learn More</a>
</section>
<!-- One -->
<section id="one" class="wrapper style1 special">
<div class="inner">
<header class="major">
<h2>Why Cheddar?</h2>
<p>The goal of Cheddar is to be a <b>fast</b>, <b>powerful</b>, <b>extensible</b> programming language.</p>
<p>Cheddar puts the entire power of the language in your hands.
This lets you develop powerful programs, with the least syntax overhead possible.</p>
</header>
<ul class="icons major">
<li><span class="icon fa-clock-o major style1"><span class="label">Fast</span></span></li>
<li><span class="icon fa-bolt major style2"><span class="label">Powerful</span></span></li>
<li><span class="icon fa-expand major style3"><span class="label">Expandable</span></span></li>
</ul>
</div>
</section>
<!-- Two -->
<section id="two" class="wrapper alt style2">
<section class="spotlight">
<div class="image">
<div>
<pre><code class="cheddar">class Greeter(name: tuple<string, string>, age: number) {
getName () -> self.name.join(" ")
addAge (text) -> "%s! You are %d years old." % self.age
greet (text) -> greeting -> "%s, %s" % (greeting, text)
}
let SayHi: Greeter = Greeter {
Tuple::IO.prompt(
[
"First", "Last",
].map(@.append(" Name? "))
),
Number::IO.prompt("Age? ")
}
print (SayHi.greet + SayHi.addAge + SayHi.getName)("Hello")
</code></pre>
</div>
</div><div class="content">
<h2>Freedom.<br/>Flexiblity.</h2>
<p>When you code, you get the freedom and flexiblity to code how you want, in whatever paradigm you like. Whether you prefer object-oriented code, or you like functional design, Cheddar suits you.</p>
</div>
</section>
<!--<section class="spotlight">
<div class="image"><img src="images/pic02.jpg" alt="" /></div><div class="content">
<h2>Tortor dolore feugiat<br />
elementum magna</h2>
<p>Aliquam ut ex ut augue consectetur interdum. Donec hendrerit imperdiet. Mauris eleifend fringilla nullam aenean mi ligula.</p>
</div>
</section>
<section class="spotlight">
<div class="image"><img src="images/pic03.jpg" alt="" /></div><div class="content">
<h2>Augue eleifend aliquet<br />
sed condimentum</h2>
<p>Aliquam ut ex ut augue consectetur interdum. Donec hendrerit imperdiet. Mauris eleifend fringilla nullam aenean mi ligula.</p>
</div>
</section>-->
</section>
<!-- Three -->
<section id="download" class="wrapper style3 special">
<div class="inner">
<header class="major">
<h2>Download</h2>
<p>Cheddar is available on a wide variety of platforms; simply, choose your platform and run the command.<br/>
If you'd like to do a custom install. You'll have to install Cheddar from <a href="https://github.com/cheddar-lang/Cheddar">source</a>.</p>
</header>
<ul class="features">
<li class="icon fa-windows">
<h3>Windows</h3>
<p>
A MSI installer is coming soon! For now perform a <a href="https://github.com/cheddar-lang/Cheddar/tree/develop#manual-installation"><b>Manual Install</b></a>
</p>
</li>
<li class="icon fa-download">
<h3>NPM</h3>
<p>If you have npm, easily install Cheddar using:
<pre><code class="sh def">npm install -g cheddar-lang</code></pre></p>
</li>
<li class="icon fa-apple">
<h3>Mac OS</h3>
<p>Ensure <a href="http://brew.sh">brew</a> is installed
<pre><code class="sh def">brew install coreutils
bash <(curl -fsSL cheddar.vihan.org/i/nix/cheddar)</code></pre></p>
</li>
<li class="icon fa-linux">
<h3>Linux</h3>
<p>If you are on a BSD platform, ensure the <code>realpath</code> command exists.
<pre><code class="sh def">sh <(curl -fsSL cheddar.vihan.org/i/nix/cheddar)</code></pre></p>
</li>
<li class="icon fa-user">
<h3>Manual Install</h3>
<p>If you which to install a development version or just want to manually install, run the following code:
<pre><code class="def no-highlight">git clone http://github.com/cheddar-lang/Cheddar.git
cd Cheddar
npm install
node ./dist/cli/cheddar.js</code></pre></p>
</li>
<li class="icon fa-question-circle">
<h3>Other?</h3>
<p>Chances are that you are on a *nix system and you don't know it. If you're sure, then <a href="https://github.com/cheddar-lang/Cheddar/issues/new">leave an issue</a> on the <a href="https://github.com">GitHub</a>.</p>
Additionally, attempt a manual install.
</li><Paste>
</ul>
<hr>
Remove the <code>bash <</code> or <code>sh <</code> to ensure you are not a victim of a <a href="https://en.wikipedia.org/wiki/Man-in-the-middle_attack">MitM</a> attack
</div>
</section>
<!-- CTA -->
<section id="cta" class="wrapper style4">
<div class="inner">
<header>
<h2>Ready to Use?</h2>
<p>Getting started with Cheddar is easy! Cheddar inherits traits from many languages, to be familiar to most programmers.</p>
</header>
<ul class="actions vertical">
<li><a href="quickstart" class="button fit special">Get Started</a></li>
<li><a href="http://docs.cheddar.vihan.org/" class="button fit">Full Docs</a></li>
<li><a href="http://cheddar.vihan.org/repl" class="button fit">Online REPL</a></li>
</ul>
</div>
</section>
<!-- Footer -->
<footer id="footer">
<ul class="icons">
<li><a href="https://github.com/cheddar-lang" class="icon fa-github"><span class="label">Github</span></a></li>
<li><a href="mailto:[email protected]" class="icon fa-envelope-o"><span class="label">Email</span></a></li>
</ul>
<ul class="copyright">
<li>© <a href="https://github.com/cheddar-lang/Cheddar">Cheddar</a></li><li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
</ul>
</footer>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/skel.min.js"></script>
<script src="assets/js/util.js"></script>
<!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]-->
<script src="assets/js/main.js"></script>
</body>
</html>