validate

Validates the script, outputting a list of SemanticErrors.