search for: step0_repl

Displaying 1 result from an estimated 1 matches for "step0_repl".

2017 Oct 28
0
making-a-lisp implementation of R
...a/mal/tree/master/ And to my surprise I got stuck in the starting blocks. There is already a mal implementation of R here https://github.com/kanaka/mal/tree/master/r but it uses rdyncall package which is not on CRAN anymore and I thought it would be fun to try my skills here The following code is step0_repl.r but it does pass the test. Do you have any idea why? READ <- function(arg){ return(arg) } EVAL <- function(arg){ return(arg) } PRINT <- function(arg){ return(arg) } REP <- function(arg){ PRINT(EVAL(READ(arg))) } tryCatch({ while(TRUE){ cat(&q...