-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
168 lines (133 loc) · 5.35 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Axel</title>
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css">
<link href="https://fonts.googleapis.com/css?family=Audiowide" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link rel="stylesheet" href="./css/style.css">
<style>
.banner {
background-color: #D9D4E0;
padding: 20px;
font-size: 1.3em;
text-align: center;
}
.logo {
color: #685790;
font-family: 'Audiowide';
}
.logo-image {
height: 1.1em;
position: relative;
top: 3px;
vertical-align: text-top;
}
.logo-purple {
color: #685790;
}
.tagline {
font-size: 1.3rem;
line-height: 1.5em;
}
.tagline-emphasized {
font-style: italic;
padding-left: 0.1em;
padding-right: 0.2em;
}
</style>
</head>
<body>
<nav role="navigation">
<div class="nav-wrapper container">
<a class="brand-logo left" href="./index.html">A )( E L</a>
<ul id="nav-mobile" class="right">
<li><a href="https://www.github.com/axellang/axel/wiki">Documentation</a></li>
<li><a href="https://www.github.com/axellang/axel">GitHub</a></li>
<li><a href="https://www.twitter.com/@AxelLanguage">Twitter</a></li>
</ul>
</div>
</nav>
<div class="banner">
Welcome! Axel is in early alpha. Please see the <a href="./blog/welcome.html">welcome blog post</a> for more information!
</div>
<div class="section no-pad-bot">
<div class="container">
<div class="col l12">
<h1 class="center">
<div class="logo">A<img class="logo-image" src="./img/logo.svg" />E L</div>
</h1>
</div>
<div class="row">
<div class="col l6 s12">
<div class="row center">
<h4 class="col s12" style="margin-top: 1.5em;">Haskell + Lisp</h5>
<h5 class="col s12 tagline">Haskell's semantics, plus Lisp's macros.
<br/> Meet Axel: a purely functional, extensible, and
<span class="tagline-emphasized">powerful</span> programming language.</h4>
</div>
<div class="row center">
<a class="btn-large waves-effect waves-light" href="https://www.github.com/axellang/axel/wiki">Get Started</a>
</div>
</div>
<div class="col l6 s12">
<pre><code>-- `LambdaCase` as a macro, in five lines
(defmacro \case
(cases
(do {varId <- gensym}
(pure [`(\ (~varId)
(case ~varId ~@cases))]))))
(def main (IO Unit)
(() (putStrLn
((\case ("tada" "🎉")
(_ "Impossible!"))
"tada"))))
-- 🎉</code></pre>
</div>
</div>
</div>
</div>
<div class="section">
<div class="container">
<hr/>
<h2 class="center logo-purple">Features</h2>
<div class="row">
<div class="col s12 m6">
<h2 class="center">
Extensibility
</h2>
<p>
With Axel, there's no need to rely on hard-coded compiler extensions to unlock the language's syntax. Everything from Axel's
<code class="haskell">do</code>-notation to list comprehensions are just macros, on the same level as those you'll imagine yourself.
</p>
<p>
<code>(defmacro backwards (forms (reverse forms)))</code><br/>
<code>(backwards 42 print) -- (print 42)</code>
</p>
</div>
<div class="col s12 m6">
<h2 class="center">
Ease-of-Use
</h2>
<p>
Macro definitions are compact, since Axel code can be easily converted into its corresponding AST. Just prefix an expression with one of the quotation operators to convert it into its abstract representation.
</p>
<p>
<code>(+ 1 2) -- 3</code><br/>
<code>'(+ 1 2) -- (AST.SExpression <metadata> [(AST.LiteralInt <metadata> 1) (AST.LiteralInt <metadata> 2)])</code>
</p>
</div>
</div>
<div class="row center" style="margin-top: 3em;">
<h4>
If you know Haskell, you already know Axel.
</h4>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script>
</body>
</html>