Skip to content

Fix empty/only-comments AST generation #596

@mla2001

Description

@mla2001

Initial Checks

Summary

Fix generic error message in ASTConstructor when AST construction fails with an empty script or only with comments.

Reproducible Example

script = "//Comment"
create_ast(script)

Expected vs Actual

Expected: Successful empty execution
Actual: Uncontrolled exception

vtlengine version

1.6.0

Python version

Any

OS

Any

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions