From a3ed74ce37b80911c441bac05b4bf4f320a58244 Mon Sep 17 00:00:00 2001 From: Steve Robillard Date: Sat, 2 Oct 2021 12:18:59 -0400 Subject: [PATCH 1/2] Add helloworld in ada. --- Contributors/SRobillard/README.md | 13 +++++++++++++ Contributors/SRobillard/hello_world.adb | 7 +++++++ 2 files changed, 20 insertions(+) create mode 100644 Contributors/SRobillard/README.md create mode 100644 Contributors/SRobillard/hello_world.adb diff --git a/Contributors/SRobillard/README.md b/Contributors/SRobillard/README.md new file mode 100644 index 0000000..69d1df5 --- /dev/null +++ b/Contributors/SRobillard/README.md @@ -0,0 +1,13 @@ +# Ada + +To install the Ada compiler on Debian like systems: + +`sudo apt install gnat` + +Then compile with: + +`gnatmake hello_world.adb` + +This will generate an executable **hello_world** file that can be run with the following command: + +`./helloworld.` diff --git a/Contributors/SRobillard/hello_world.adb b/Contributors/SRobillard/hello_world.adb new file mode 100644 index 0000000..9a732a5 --- /dev/null +++ b/Contributors/SRobillard/hello_world.adb @@ -0,0 +1,7 @@ +with Text_IO; use Text_IO; + +procedure hello_world is +begin + Put_Line("Hello World."); +end hello_world; + From 52ac2a7d64a38ce11c726920557c454f902710c4 Mon Sep 17 00:00:00 2001 From: Steve Robillard Date: Sat, 2 Oct 2021 12:55:33 -0400 Subject: [PATCH 2/2] Fix typo in README. --- Contributors/SRobillard/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Contributors/SRobillard/README.md b/Contributors/SRobillard/README.md index 69d1df5..66c87b5 100644 --- a/Contributors/SRobillard/README.md +++ b/Contributors/SRobillard/README.md @@ -10,4 +10,4 @@ Then compile with: This will generate an executable **hello_world** file that can be run with the following command: -`./helloworld.` +`./hello_world.`