Updated June 2022 to be more flexible
Your interpreter may read the program from stdin or fromshould input a file specified via stdin or command-line argument. After evaluatingtinylisp program in one of two ways:
- directly, as a multiline string, or
- indirectly, as the name of a file containing the tinylisp program.
It should evaluate each expression, it should output in the program one by one, outputting each result of that expression to stdout with a trailing newline.
All default input and output methods are acceptable. Your submission may be a full program or a function.