forked from sacalon/sacalon.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
238 lines (216 loc) · 7.76 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
236
237
238
<!DOCTYPE html>
<html>
<head>
<title>The Hascal Programming Language --- Home</title>
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/prism.css" />
<script src="js/prism.js"></script>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
* {
max-width: 100%;
}
</style>
<link rel="icon" type="image/x-icon" href="images/hascal-logo.png" />
<link rel="stylesheet" href="./css/global.css">
</head>
<body>
<iframe src="./components/header.html" frameborder="0" id="header-section"></iframe>
<main role="main">
<div class="jumbotron">
<div class="container">
<div class="row">
<div class="col-sm-6">
<h1 style="text-align: left" class="display-3" id="header">
Hascal
</h1>
<p>
Hascal is a general purpose and open source programming language
designed to build optimal, maintainable, reliable and efficient
software.
</p>
<a class="btn btn-primary btn-lg" href="docs/latest/index.html"
>Getting Started »</a
>
<a
class="btn btn-success btn-lg mt-lg-0 mt-1"
href="docs/latest/lang/0_install.html"
>Install Hascal</a
>
<br />
<p>
Latest release :
<a href="https://github.com/hascal/hascal/releases/v1.4.0"
>v1.4.0</a
>
</p>
</div>
<div class="col-sm-6">
<pre><code class="language-hascal">// manual memory management example in Hascal
struct point {
var x : int?
var y : int?
}
function main() : int {
// declaring and allocating `foo` in heap
var foo : point^ = new point(point(10,10))
// printing `foo` contents
print(^foo) // Output: point(x:10,y:10)
// reallocate `foo`
foo = new point(point(20,20))
print(^a)
// deallocate `foo` from heap at end of function scope
delete foo
return 0
}
</code></pre>
<a href="https://github.com/hascal/hascal/tree/main/examples"
>More examples...</a
>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div>
<div class="col-sm">
<div>
<h4 style="color: brown">Simple and Easy Language</h4>
<p>
Hascal has a simple and easy syntax and a small standard
library, you can learn Hascal in less than an hour!
<br />
Hascal is very similar to Swift and was originally based on
the good ideas of the Pascal language.
</p>
</div>
</div>
<div class="col-sm">
<div>
<h4 style="color: brown">Safe and reliable</h4>
<p>
Hascal uses a Null safety system to prevent NULL data errors
to increase the security and stability of applications.
<br />
By default, Hascal requires you to select a value for your
variable and constants (at declaration) to ensure that there
is no NULL data in the program.
</p>
</div>
</div>
<div class="col-sm">
<div>
<h4 style="color: brown">Manual memory management</h4>
<p>
Hascal uses manual memory management and gives you the freedom
to act against memory but guides you in manual memory
management when compiling(WIP).
</p>
</div>
</div>
<div class="col-sm">
<div>
<h4 style="color: brown">Use Hascal every where!</h4>
<p>
Hascal is cross platform, meaning it can run on any platform,
from Linux and Windows to embedded systems!
<br />
The Hascal can call C++ code, and it is possible to call
Hascal code in any language that can be able to cooperate with
C++ code.
</p>
</div>
</div>
</div>
</div>
</div>
<br />
<div class="jumbotron">
<div class="container">
<h1 style="text-align: center" class="display-4" id="header">
Community
</h1>
<div class="row">
<div class="col">
<a
href="https://github.com/hascal/hascal"
style="display: flex; color: brown; text-decoration-line: none"
>
<p class="fa fa-github" style="font-size: 48px"></p>
<p style="font-size: 30px">GitHub</p>
</a>
</div>
<div class="col">
<a
href="https://github.com/hascal/hascal/discussions"
style="display: flex; color: brown; text-decoration-line: none"
>
<p class="fa fa-comments-o" style="font-size: 48px"></p>
<p style="font-size: 30px">Forum</p>
</a>
</div>
<div class="col">
<a
href="https://discord.gg/yjv8QqPR"
style="display: flex; color: brown; text-decoration-line: none"
>
<p class="fab fa-discord" style="font-size: 48px"></p>
<p style="font-size: 30px">Discord</p>
</a>
</div>
<div class="col">
<a
href="https://discord.gg/yjv8QqPR"
style="display: flex; color: brown; text-decoration-line: none"
>
<p class="fab fa-gitter" style="font-size: 48px"></p>
<p style="font-size: 30px">Gitter</p>
</a>
</div>
</div>
</div>
</div>
<br />
<div class="">
<div class="container">
<h1 style="text-align: center" class="display-4" id="header">
The Hascal Foundation
</h1>
<div align="center">
<p>
The Hascal Foundation is an open-source foundation was created in
2021 to fund long term Hascal development.
</p>
<a href="foundation.html" class="btn btn-success btn-lg"
>Learn More</a
>
</div>
</div>
</div>
<br />
</main>
<hr />
<iframe src="./components/footer.html" frameborder="0" id="footer-section"></iframe>
<script src="./js/jquery.min.js"></script>
<script src="./js/global.js"></script>
<script text="text/javascript">
var header = document.getElementById("header");
var type_this = "Hascal";
var index = 0;
window.next_letter = function () {
if (index <= type_this.length) {
header.innerText = type_this.substr(0, index++);
setTimeout("next_letter()", 60);
}
};
document.addEventListener("DOMContentLoaded", () => {
next_letter();
});
</script>
</body>
</html>