X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?p=clnl;a=blobdiff_plain;f=src%2Fmain%2Fmain.lisp;h=d9780baf8b759fa9346ca8c04f1f3b3aaeeb493f;hp=e774de3889987027e296be3441a616a6f5e4a01e;hb=b398914;hpb=fb4cf7e95b2598da895d8a1e9a00024277dba546 diff --git a/src/main/main.lisp b/src/main/main.lisp index e774de3..d9780ba 100644 --- a/src/main/main.lisp +++ b/src/main/main.lisp @@ -1,4 +1,19 @@ (in-package #:cl-nl) +(defun e (ast) ast) + +(defun r (str) + (let + ((ast (cl-nl.lexer:lex str))) + (format t "AST for ~S became ~S~%" str ast) + ast)) + +(defun p (result) result) + (defun run () - (format t "AH HA~%")) + (loop for str = (read-line) + while str + do (p (e (r str)))) + + ;(format t "AH HA~%") + )