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
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,28 +55,28 @@ Input options (immediately after `psc` and before any redirections or filenames)
55
55
56
56
## Use as a CGI program
57
57
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\`.
59
59
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.
61
61
62
-
The minimum setup under Linux is:
62
+
The minimum setup under Debian/Ubuntu is:
63
63
64
64
```
65
-
$ sudo apt install apache2 # command for Debian/Ubuntu
65
+
$ sudo apt install apache2
66
66
$ sudo a2enmod cgi
67
67
```
68
68
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.
70
70
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.
72
72
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.
74
74
75
75
## License
76
76
77
77
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.
78
78
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.
80
80
81
81
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.
82
82
@@ -86,4 +86,4 @@ Pseudocode Specification as an unrestricted download from the AQA website:
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