You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+13-66
Original file line number
Diff line number
Diff line change
@@ -68,25 +68,22 @@ setup the correct Haskell version and build and install Encore.
68
68
If you do not want the script to alter your `$PATH` variable or change the Haskell version use the
69
69
`-h` flag to see available options.
70
70
71
-
### Step 1: Preliminaries
71
+
### Installing on OS X
72
+
73
+
#### Step 1: Preliminaries
72
74
73
75
We're using:
74
76
75
77
- doxygen v1.8.6
76
78
- clang:
77
-
Apple LLVM version 7.0.0 (clang-700.0.72)
78
-
Target: x86_64-apple-darwin14.5.0
79
+
Apple LLVM version 7.0.2 (clang-700.1.81)
80
+
Target: x86_64-apple-darwin15.6.0
79
81
Thread model: posix
80
-
- g++ 4.8
81
82
- pcre2-10.21 (for Regex library)
82
83
- stack (the haskell build tool)
83
84
- premake4 (Premake Build Script Generator) 4.3
84
-
-`scribble` -- only for building the documentation
85
-
86
-
87
-
In the below you find instructions for installing the preliminaries on OS X and on linux.
88
85
89
-
#### Installing the preliminaries on OS X
86
+
Below you find instructions for installing the preliminaries on OS X.
90
87
91
88
##### Installing homebrew
92
89
@@ -96,12 +93,6 @@ Go to http://brew.sh/, the instructions there work nicely. Make sure that your n
96
93
97
94
Run: `brew update; brew install doxygen`
98
95
99
-
##### Installing `scribble`
100
-
101
-
Go to the [Racket Download page](http://racket-lang.org/download/),
102
-
download and install racket. The `scribble` tool comes with the racket
103
-
distribution.
104
-
105
96
##### Installing `clang`:
106
97
107
98
Run: `brew update; brew install llvm`
@@ -140,9 +131,11 @@ in any directory. To do this, add this line to your `~/.bashrc` file, inserting
140
131
141
132
export PATH="<SOME_DIR>/encore/release:${PATH}"
142
133
143
-
### Step 4: Compiling and Running Encore Programs
134
+
### Compiling and Running Encore Programs
144
135
145
-
Now you can compile a program by using
136
+
This instructions are the same for any Linux distribution and OS X.
137
+
138
+
You can compile a program by using
146
139
147
140
$ encorec my_file.enc
148
141
@@ -160,7 +153,7 @@ Alternatively, you can use a .enc-file as a script by adding `#! /usr/bin/env en
160
153
161
154
This will compile the file -- and run it.
162
155
163
-
You can find some example programs in the [programs](https://github.com/parapluu/encore/tree/master/programs) directory.
156
+
You can find some example programs in the [test directory](https://github.com/parapluu/encore/tree/development/src/tests/encore/basic).
164
157
165
158
Have fun!
166
159
@@ -184,52 +177,6 @@ Running `encorec foo.enc` will typecheck the source and produce the executable
184
177
--help | Display this information.
185
178
```
186
179
187
-
## Language Specification
188
-
189
-
Update the language specification whenever you change the Encore compiler.
190
-
191
-
There is a prebuilt version of the documentation in
192
-
`doc/encore/prebuilt/`[direct link](https://github.com/parapluu/encore/raw/development/doc/encore/prebuilt/encore.pdf) for the people who do not have Scribble
193
-
installed. Please also update these PDFs after updating the
194
-
specification.
195
-
196
-
#### Generate documentation
197
-
198
-
Generate the documentation and check your changes by typing:
199
-
200
-
-`make doc`
201
-
202
-
After this, you should have a folder under `encore/doc/encore` named `build` that contains the documentation in pdf and html.
203
-
204
-
#### Update the language specification
205
-
206
-
The language specification has the following directory structure:
207
-
208
-
```
209
-
├── Makefile
210
-
├── README.md
211
-
├── index.scrbl
212
-
├── lang
213
-
│ ├── client-side
214
-
│ │ └── index.scrbl (todo)
215
-
│ ├── getting-started
216
-
│ │ └── index.scrbl
217
-
│ ├── module-system
218
-
│ │ └── index.scrbl (todo)
219
-
│ ├── semantics
220
-
│ │ └── index.scrbl (todo)
221
-
│ └── syntax
222
-
│ ├── index.scrbl
223
-
│ └── grammar.scrbl (ongoing work)
224
-
└── extras
225
-
├── README.md
226
-
└── math
227
-
└── ...
228
-
```
229
-
230
-
Update the files relevant to your changes. For instance, if you decide to
231
-
introduce a new keyword in the language, such as `repeat`, you would need to
232
-
update the file `grammar.scbl` in `upscale/doc/encore/lang/syntax/`.
180
+
## Documentation
233
181
234
-
The easiest way (for now) to know what to modify is by generating the html,
235
-
reading the section relevant to you and updating it.
182
+
You can find the documentation in different formats [here](https://stw.gitbooks.io/the-encore-programming-language/content/)
0 commit comments