Skip to content

Commit 6d34f54

Browse files
committed
Updates to documentation
1 parent 25753d8 commit 6d34f54

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

Makefile.nmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# NMAKE Makefile for pseudocode-compiler project
2-
# note: run from within Visual Studio 2019 command prompt
3-
# "nnake /f Makefile.nmake"
2+
# note: run from within Visual Studio 2019/2022 command prompt
3+
# "nmake /f Makefile.nmake"
44

55
# note: place the following in the same directory as this makefile or specify paths
66
Bison = win_bison.exe

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,28 +55,28 @@ Input options (immediately after `psc` and before any redirections or filenames)
5555

5656
## Use as a CGI program
5757

58-
The supplied `pseudocode.html` web-page together with `styles.css` and `base64.js` can be used as a front-end to the compiler utility. Under Linux/Apache these files would need to be copied to `/var/www/html/`, or under Windows to `C:\inetpub\wwwroot\`.
58+
The supplied `pscweb.html` web-page together with `pscweb.css` and `pscweb.js` can be used as a front-end to the compiler utility. Under Linux/Apache these files would need to be copied to `/var/www/html/` or `/srv/http/`, or under Windows to `C:\inetpub\wwwroot\`.
5959

60-
Permissions would need to be given to the utility to run as a CGI program, under Linux/Apache it would need to be copied to `/usr/lib/cgi-bin/`, or under Windows to the same directory as before.
60+
Permissions would need to be given to the utility to run as a CGI program, under Linux/Apache it would typically need to be copied to `/usr/lib/cgi-bin/` or `/srv/http/cgi-bin/`, or under Windows to the same directory as before.
6161

62-
The minimum setup under Linux is:
62+
The minimum setup under Debian/Ubuntu is:
6363

6464
```
65-
$ sudo apt install apache2 # command for Debian/Ubuntu
65+
$ sudo apt install apache2
6666
$ sudo a2enmod cgi
6767
```
6868

69-
possibly with `sudo a2ensite ...` and restarting the `apache2` service too. See your distro's documentation.
69+
(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.
7070

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 `pseudocode.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.
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.
7272

73-
Note that inputs to the running program have to be entered into the text field bottom-left **before** the program is run, being separated by commas. This is the only difference to running the Javascript in a console window.
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.
7474

7575
## License
7676

7777
This software is released under the highly permissive MIT License. If you do modify or improve parts of this software, especially the web front-end, I hope you would want to share your efforts, but this is not a requirement.
7878

79-
For this software to be useful to school students, setting up the web interface would be of great advantage, as the edit/compile/run cycle using just the console has an associated learning curve.
79+
For this software to be useful to school students, setting up the web interface would be of great advantage, as the edit/compile/run cycle necessary for using the console has an associated learning curve.
8080

8181
Please note that this software is **not** either endorsed or supported by AQA Exam Board, and also its author is not affiliated to them in any way.
8282

@@ -86,4 +86,4 @@ Pseudocode Specification as an unrestricted download from the AQA website:
8686

8787
https://filestore.aqa.org.uk/resources/computing/AQA-8525-NG-PC.PDF
8888

89-
Note that the only change from the spec (as far as I am aware) is for `SUBROUTINE` parameters needing to be followed by `: Type` as for `RECORD` fields (but not when the `SUBROUTINE` is called).
89+
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.

0 commit comments

Comments
 (0)