Validate Tonel Syntax
Validate Tonel .st files before importing to the Smalltalk image. Modern AI usually generates correct Tonel, so this is optional.
Usage
/st-validate /absolute/path/to/MyClass.st # validate a file
/st-validate 'Tonel source text' # validate content directly
Steps
- Call
validate_tonel_smalltalk_from_filefor a file path, orvalidate_tonel_smalltalkfor raw content - Report any syntax errors or confirm the file is valid
Notes
- Use
validate_smalltalk_method_bodyto validate a single method body in isolation - Validation errors must be fixed before importing
Examples
/st-validate /home/user/project/src/MyPackage/MyClass.st