- //Trigger error about empty inputs
- //XXX: There may be a legitimate case where inputs is empty, if so please contact the author
- throw new RuntimeError('Empty inputs token', $token->getLine(), $stream->getSourceContext());
+ //Trigger error about empty inputs ?
+ //XXX: There may be a legitimate case where we want an empty file or an error, feel free to contact the author in such case
+ #throw new Error('Empty inputs token', $token->getLine(), $stream->getSourceContext());
+
+ //Send an empty node without inputs
+ return new Node();