Ruta graveolens  ·  notes from a language experiment  ·  cultivated since 2025

E0001: Unexpected character

CodeCategoryStability
E0001LexerPermanent

Explanation

Rue found a source character that cannot begin any token in its current position.

Likely cause

The source contains an unsupported punctuation character, a non-ASCII character outside a comment or string, or an invisible character such as a byte-order mark away from the start of the file.

Examples

Unsupported punctuation

fn main() {
    $
}

Keep non-ASCII text inside a string

fn main() {
    let greeting = "héllo";
}

References