While scanning/parsing, newlines from stdin should be treated as end of input if there are no open parens or square brackets (this is needed because of the extension to the syntax to handle array references)