"Frank D. Engel, Jr." wrote:
--- CBFalconer cbfalconer@yahoo.com wrote:
HPs Pascal was originally developed by Bob Fraley, and is basically ISO 7185 standard Pascal. I believe the only syntax extensions were the OTHERWISE clause for case statements, the array[firstindex FOR length] subarray construct, and provision for separate compilation by an isolated '.' ending the compilation without a normal outer code block. His original implementation made OTHERWISE a reserved word, which I avoided in PascalP at the cost of context sensitivity.
Any added standard procedures would be fairly system specific, although somebody mentioned 'overprint'. This simply flushes a line with a terminal <cr>, rather than a <crlf> combination (as from writeln), so that a following line overprints. 'prompt' is in the same category, except that no line termination characters are used, and is analagous to the C fflush() function. write, writeln, overprint, prompt should all share the same user syntax, with the difference being the handling of the output buffer and line termination characters. My memory has some dropped bits however.
OTHERWISE should work, right?
Someone being far too creative could try to implement those procs as a UNIT for compatibility.
I have no idea what the '.' thing is.
The syntax of the outer block is "BEGIN <statements> END ." Everything after the final '.' in the source is ignored, allowing various annotations etc. in the source. The early versions used the omission of "BEGIN <statements> END" to signify that this was a separately compiled module which contained only GLOBAL functions and procedures. If there were global variables and types they had to be specified in a separate file and included in the module, using whatever (extension) include mechanism is available. Pascal as originally designed was expected to compile only a single source file.
What about the array format? I am curious about that.
Probably no longer there.
BTW, please DO NOT top-post. I corrected this one.