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
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,8 @@ Method:
18
18
19
19
* Run `nmake /f Makefile.nmake` and locate generated `psc.exe`
20
20
21
+
* (Optional) Use `pscexamples.exe` to generate `pscexamples.js`
22
+
21
23
## Building under Linux
22
24
23
25
Prerequisites:
@@ -32,6 +34,8 @@ Method:
32
34
33
35
* Run `make` to generate `psc`
34
36
37
+
* (Optional) Use `./pscexamples` to generate `pscexamples.js`
38
+
35
39
## Running the compiler
36
40
37
41
Simply run `psc.exe` or `./psc` in a console/command prompt window to read from the keyboard and output to the console, redirections using `<` and `>` work equally well too. (Note: to end input under Linux use `Ctrl-D`, under Windows `Ctrl-Z` followed by `Enter`.) See the example programs in the `progs` directory.
@@ -64,13 +68,15 @@ The minimum setup under Debian/Ubuntu is:
64
68
```
65
69
$ sudo apt install apache2
66
70
$ sudo a2enmod cgi
71
+
$ sudo cp pscweb.* /var/www/html/
72
+
$ sudo cp psc /usr/lib/cgi-bin/
67
73
```
68
74
69
75
(Possibly with `sudo a2ensite ...` and restarting the `apache2` service too.) See your individual distro's documentation for how to install and set up a webserver.
70
76
71
-
Windows needs Internet Information Services (IIS) Manager to be enabled and set up together with a permissions rule for the executable binary, see documentation for your version of Windows (tested under Windows 10). Note that **some editing of `pscweb.html` is necessary**: `/cgi-bin/psc?` needs to be changed to `./psc.exe?` (note the `.`), assuming that the utility is located in the same directory as the web-page.
77
+
Windows needs Internet Information Services (IIS) Manager to be enabled and set up together with a permissions rule for the executable binary, see documentation for your version of Windows (tested under Windows 10). Note that **some editing of `pscweb.js` is necessary in function run()**: `/cgi-bin/psc?` needs to be changed to `./psc.exe?` (note the `.`), this is assuming that the utility is located in the same directory as the web-page.
72
78
73
-
Note that inputs to the running program have to be entered into the text field bottom-left**before** the program is run, these being separated by commas. Also the user is prompted to clear the output window when it is full. These are the only significant difference to running the Javascript in a console window.
79
+
Note that inputs to the running program have to be entered into the text field bottom-right**before** the program is run, these being separated by commas. Also the user is prompted to clear the output window when it is full. These are the only significant differences to running the Javascript in a console window.
74
80
75
81
## License
76
82
@@ -86,4 +92,6 @@ Pseudocode Specification as an unrestricted download from the AQA website:
Note that the only deliberate change from the specification is for `SUBROUTINE` parameters needing to be followed by `: Type` (as for `RECORD` fields), but not where the `SUBROUTINE` is called with arguments.
95
+
Note that the only deliberate change from the specification is for `SUBROUTINE` parameters needing to be followed by `: Type` (as for `RECORD` fields), but not where the `SUBROUTINE` is called with arguments.
96
+
97
+
**Update:** Compound assignment of `RECORD`s now appears in the specification above, as does `OUTPUT`ing of a comma-separated list of `StringExp`s. Support for both of these is anticipated in a future release.
0 commit comments