E0024: unterminated documentation string

View source

A documentation string starts with """ and ends with the next """.

A documentation string starts with """ and ends with the next """. The lexer reports this error when the file ends first. The error points at the opening """. Everything after it is part of the string, so the declaration that follows is hidden until the string is closed.

Example

actus
"""
Entry point.
verb main() {
}

Fix

Add the closing """ on its own line.

actus
"""
Entry point.
"""
verb main() {
}

Run actus explain E0024 in your terminal to read this entry offline. Browse Lexer & parser or all error codes.