-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
62 lines (60 loc) · 2.58 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="main.css" rel="stylesheet">
<title>S-algol</title>
</head>
<body>
<div class="stripe header">
<nav>
<a href="#examples">Try It</a>
<a href="#get">Download</a>
<a href="https://github.com">Source</a>
<a href="#faq">FAQ</a>
</nav>
<img class="crest" src="assets/shield.png">
</div>
<div class="stripe banner">
<img class="logo" src="assets/s-algol-logo.png">
<div class="synopsis">
S-algol is a programming language that was designed in 1979 by Ron Morrison. It was used for teaching at the university of St Andrews at an undergraduate level until 1999. This project aims to immortalise the language by developing a compiler that converts S-algol programs to javascript programs.
</div>
</div>
<div class="stripe content" id="examples">
<h2>Try It</h2>
<p>This editor allows direct testing of the S-algol compiler.</p>
<p>The 'compile' feature shows the javascript code generated by the compiler.</p>
<p>The 'compile & run' feature shows the execution of the produced javascript code.</p>
<p>Note that this evaluates the code directly in the browser window so infinite loops will cause the window to become unresponsive.</p>
</div>
<div id="examples-react"></div>
<div class="stripe content" id="get">
<h2>Download</h2>
<p>There are several options for trying the S-algol language.</p>
<p>To have a quick play around with the language, go to the 'try' section of the website.</p>
<p>To get a copy locally, run `npm install -g s-algol`. This will install the compiler on your computer.</p>
<p>Code can then be compiled in the following ways:</p>
<code>s -cs "let a = 1?"</code>
<code>echo "let a = 1?" | s</code>
</div>
<br>
<div class="stripe content" id="faq">
<h2>FAQ</h2>
<h3>What is the aim of this project?</h3>
<p>
The main of the project is preservation. Hopefully people will be able to be able see what it was like to
learn programming at St Andrews University for the forseeable future.
</p>
<h3>What's the idea behind the logo?</h3>
<p>
The logo is a shortened version of 'St Andrews Algol'. The 'S' is taken from the tail of the lion rampant in
the St Andrews University Crest.
</p>
</div>
<br>
<br>
<br>
<script src="bin/bundle.js"></script>
</body>
</html>