forked from newspeaklanguage/newspeak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAmpleforth.ns
28 lines (25 loc) · 1.05 KB
/
Ampleforth.ns
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
Newspeak3
'Root'
class Ampleforth packageUsing: manifest = (
(* Ampleforth is designed to support live literate programming. It supports embedding Newspeak code inside the text of a normal web page. Ampleforth documents can be produced by editing HTML in any tool. Use this application to run such pages stand alone. One can also interactively edit and run such documents in the Newspeak IDE (see the HopscotchWebIDE module).
Ampleforth is a character in 1984 whose role is to convert works of Oldspeak literature into Newspeak. He's a literary editor conversant in Newspeak.
Copyright 2014-2017 Google Inc.
Copyright 2022 Gilad Bracha.
*)
|
private AmpleforthEmbedder = manifest AmpleforthEmbedder.
private HopscotchIDE = manifest HopscotchWebIDE packageUsing: manifest.
|
) (
public main: platform args: args = (
|
namespace embedder ide
|
ide:: HopscotchIDE ideUsingPlatform: platform.
namespace:: ide namespacing Root.
namespace at: #Ampleforth put: self class.
embedder:: AmpleforthEmbedder usingPlatform: platform ide: ide.
embedder start.
)
) : (
)