4 ms·
You have to recognize the specific case to throw the syntax error. Sounds like they're going to fix that. I guess people don't remember PL/I very much: PL/I
by GeorgeTirebiter 6y ago
You have to recognize the specific case to throw the syntax error. Sounds like they're going to fix that.
I guess people don't remember PL/I very much: PL/I keywords are not reserved words, so it is possible to use them in a program in other than their keyword context. DO DO=1 TO TO BY BY;END=END+1;END; is a valid program.
- Someone 6y agoFor those wondering, the ideas behind that choice is that you can’t expect anybody to know all keywords. PL/I had many built-in functions that all were keywords, so it had many keywords (https://www.cs.vu.nl/grammarware/browsable/os-pli-v2r3/#Keywords https://www.cs.vu.nl/grammarware/browsable/os-pli-v2r3/#Keyw... lists hundreds) and even if you do, future versions of the language may include more keywords.