From 167dfaca9b55b9d8d0388a7dbf1503aaa6aac82a Mon Sep 17 00:00:00 2001 From: Stephan Wehner Date: Thu, 18 Sep 2025 09:19:43 -0700 Subject: [PATCH 1/2] Add Erlang --- .gitignore | 1 + hello.erl | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .gitignore create mode 100644 hello.erl diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a3bc985 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +hello.beam diff --git a/hello.erl b/hello.erl new file mode 100644 index 0000000..1fa41d1 --- /dev/null +++ b/hello.erl @@ -0,0 +1,14 @@ +% Stephan Wehner (2025) +% Erlang +% https://www.erlang.org/ +% +% Usage: +% $ erlc hello.erl +% $ erl -noshell -s hello start -s init stop +-module(hello). +-export([start/0]). + +start() -> +  Input = io:get_line("What is your name? "), +    Name = string:strip(Input, right, $\n), + io:format("Hello, ~s!~n", [Name]). From c317cc134bee46df4702bcd8ebed5560295a9aec Mon Sep 17 00:00:00 2001 From: Stephan Wehner Date: Sun, 21 Sep 2025 10:36:27 -0700 Subject: [PATCH 2/2] Adding a basic Makefile with targets for only one language (Erlang). Not sure which platforms will be happy --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..78986cd --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +.PHONY: erl_compile erl_run clean + +erl_compile: + erlc hello.erl + +erl_run: erl_compile + erl -noshell -s hello start -s init stop + +clean: + rm -f *.beam