3 ms·
Nice documentation. Ada looks a lot like Pascal. It is interesting that SPARK is a subset of subset of Ada.
by TedDallas 6y ago
Nice documentation. Ada looks a lot like Pascal. It is interesting that SPARK is a subset of subset of Ada.
- non-entity 6y agoPascal-like syntax seemed to have been popular around the time. Outside the Writh languages(Pascal, Modula, Oberon) and Ada, I was reading about CHILL[0] the other day, which is supposedly similar to Ada, but was rather domain specific. Sadly I don't think any modern, free implementations exist. [0]https://en.m.wikipedia.org/wiki/CHILL https://en.m.wikipedia.org/wiki/CHILL
- pjmlp 6y agoPascal is a simplification from ALGOL, so it is actually most ALGOL derived languages. C description tends to refer to ALGOL influence, but it just boils down to structured programming and the data types. Syntax has nothing from ALGOL.
- nsajko 6y agoVHDL has a quite similar syntax, too.
- sguav 6y agoIndeed VHDL is supposedly based as much as possible on Ada syntax. Naturally you would have several differences due to the purpose of the languages, but they are _very_ similar IMO
- Lucretia9 6y agoIt's Pascal inspired but certainly not any of Wirth's syntaxes, like 1/2 line if's, semi colons in weird places making blocks look odd. Ada has a more inclusive syntax, whereby "is" or "begin" and "end" encases what is inside it. Compare Modula's: MODULE X; ... END MODULE X. and Ada's: package X is ... end X; Ada's package feels like one statement containing others, whereby Modula's looks like it ends on the first line.
- mypalmike 6y agoYeah when I learned Ada in college it seemed like it was a better Pascal, including fixing the quirky inconsistent termination.
- EdPF 6y agoThat difference may be due to ";" being considered a statement separator in Pascal, and a statement terminator in Ada. https://wiki.haskell.org/Terminator_vs._separator https://wiki.haskell.org/Terminator_vs._separator