mirror of
https://github.com/peklaiho/madlisp.git
synced 2025-02-03 22:45:18 +08:00
handle no input
This commit is contained in:
parent
91eba046bc
commit
291a7d6521
@ -5,6 +5,10 @@ class Reader
|
||||
{
|
||||
public function read(array $tokens)
|
||||
{
|
||||
if (empty($tokens)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$index = 0;
|
||||
return $this->readForm($tokens, $index);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user