Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature:Autograding] Add Erlang image (#53)
### Please check if the PR fulfills these requirements: * [X] Tests for the changes have been added/updated (if possible) * [X] Documentation has been updated/added if relevant ### What is the current behavior? <!-- List issue if it fixes/closes/implements one using the "Fixes #<number>" or "Closes #<number>" syntax --> N/A ### What is the new behavior? Can now run Erlang files ### Other information? <!-- Is this a breaking change? --> <!-- How did you test --> I tested it using the code below ```erl -module(concurrency). -export([start/0, process/0]). start() -> Pid = spawn(concurrency, process, []), Pid ! {self(), "Hello"}, receive {Pid, Msg} -> io:format("Received message: ~p~n", [Msg]) end. process() -> receive {Sender, Msg} -> Sender ! {self(), Msg} end. ``` ![image](https://github.com/user-attachments/assets/8ee78e7a-5a29-4ecf-8669-348242d45a0d)
- Loading branch information