File: erlang.actual

package info (click to toggle)
golang-github-alecthomas-chroma 0.8.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,332 kB
  • sloc: python: 228; javascript: 79; makefile: 20
file content (15 lines) | stat: -rw-r--r-- 263 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-module(repl).

-export([run/0]).

run() ->
    read_eval_process().

read_eval_process() ->
    Line = io:get_line("> "),
    Out = process_line(Line),
    io:format("< ~s~n~n", [Out]),
    read_eval_process().

process_line(Line) ->
    string:uppercase(Line).