Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.brim-lang.com/llms.txt

Use this file to discover all available pages before exploring further.

Lexer diagnostics

  • Total in this phase: 15
  • Errors: 15 | Warnings: 0 | Bugs: 0
  • Prefix: /diagnostics/<code>
  • Common tags: indent, lexer, utf-8

Common fixes in this phase

  • save the file as UTF-8
  • add a closing / for each opening /
  • add a closing quote to terminate the string literal
  • character literals must contain exactly one character or one escape
  • check numeric base prefix and digit format

Codes

  • E1001 - invalid character (Error)
  • E1002 - invalid token sequence (Error)
  • E1003 - unterminated string literal (Error)
  • E1004 - invalid escape sequence (Error)
  • E1005 - invalid numeric literal (Error)
  • E1006 - unterminated block comment (Error)
  • E1007 - unterminated raw string (Error)
  • E1008 - invalid character literal (Error)
  • E1009 - invalid digit for base (Error)
  • E1010 - invalid UTF-8 encoding (Error)
  • E1011 - shebang only allowed at start (Error)
  • E1012 - integer literal overflow (Error)
  • E1013 - float literal overflow (Error)
  • E1014 - indentation mixes tabs and spaces (Error)
  • E1015 - unexpected null byte (Error)
Back to Diagnostics index. Canonical phase route: /diagnostics/phases/lexer