mirror of
https://github.com/peklaiho/madlisp.git
synced 2024-11-22 21:35:03 +00: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…
Reference in New Issue
Block a user