bynk.lex.unexpected_character
Error An unexpected character in the source.
The lexer met a character that starts no token in Bynk, such as #, $ or ' outside a string literal. A comment is // (not #) and a string takes double quotes (not single). The character is skipped and lexing goes on, so every lexical error in the file is reported together.
Example
const Limit: Int = 100 # the cap // ✗ `#` is not a commentconst Limit: Int = 100 // ✓ a comment is `//`In the Book
See also
- Every code in its category, Lexer, on the diagnostic index.
bynk explain bynk.lex.unexpected_charactershows the same from the installed toolchain, without a network.