| 1 |
#!/usr/local/bin/spar |
| 2 |
-- http://www.sparforte.com/sparforte21/examples/hello.html |
| 3 |
|
| 4 |
-- Hello world in a quick and scripty way |
| 5 |
? "Hello world!"; |
| 6 |
|
| 7 |
-- Hello world in a do it again way |
| 8 |
?%; |
| 9 |
|
| 10 |
-- Hello world in a Bourne shell way |
| 11 |
echo Hello world!; |
| 12 |
|
| 13 |
-- Hello world in an AdaScript parameter shell way |
| 14 |
echo( "Hello world!" ); |
| 15 |
|
| 16 |
-- Hello world in a ISO standard, scalable, structured way |
| 17 |
put_line( "Hello world!" ); |
| 18 |
|
| 19 |
-- Hello world in a PostgreSQL database way |
| 20 |
db.connect( "ken" ); |
| 21 |
select 'Hello world!'; |
| 22 |
db.disconnect; |