From 9cf87a0c35013bd2191bf9c56308f40c045a0380 Mon Sep 17 00:00:00 2001 From: Pekka Laiho Date: Sun, 20 Dec 2020 13:54:27 +0700 Subject: [PATCH] add pstr method to Lisp class --- src/Lisp.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Lisp.php b/src/Lisp.php index 20ccc06..716fee7 100644 --- a/src/Lisp.php +++ b/src/Lisp.php @@ -29,6 +29,11 @@ class Lisp $this->printer->print($value, $printReadable); } + public function pstr($value, bool $printReadable): string + { + return $this->printer->pstr($value, $printReadable); + } + public function readEval(string $input) { $tokens = $this->tokenizer->tokenize($input);