1
1
mirror of https://github.com/kanaka/mal.git synced 2024-11-11 00:52:44 +03:00
mal/bash/step0_repl.sh

21 lines
196 B
Bash
Executable File

#!/usr/bin/env bash
READ () {
read -u 0 -e -p "user> " r
}
EVAL () {
r="${1}"
}
PRINT () {
r="${1}"
}
while true; do
READ
EVAL "${r}"
PRINT "${r}"
echo "${r}"
done