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.

Parser diagnostics

  • Total in this phase: 27
  • Errors: 26 | Warnings: 1 | Bugs: 0
  • Prefix: /diagnostics/<code>
  • Common tags: async, attributes, generics, macros, operators, parser, recovery, strings

Common fixes in this phase

  • add { ... } or = expression body
  • add at least one module item
  • attach the attribute to a supported item kind
  • balance < >
  • balance macro delimiters

Codes

  • E0000 - empty source file (Warning)
  • E1100 - unexpected token (Error)
  • E1101 - unexpected end of file (Error)
  • E1102 - expected identifier (Error)
  • E1103 - reserved keyword in expression position (Error)
  • E1104 - missing delimiter (Error)
  • E1105 - expected item (Error)
  • E1106 - expected expression (Error)
  • E1107 - expected type (Error)
  • E1108 - expected pattern (Error)
  • E1109 - invalid modifier (Error)
  • E1110 - invalid binding (Error)
  • E1111 - parser recovery limit reached (Error)
  • E1112 - expected comma or separator (Error)
  • E1113 - forbidden trailing token (Error)
  • E1114 - duplicate parameter name (Error)
  • E1115 - duplicate field in record literal (Error)
  • E1116 - generic argument list mismatch (Error)
  • E1117 - await in non-async context (Error)
  • E1118 - invalid visibility qualifier (Error)
  • E1119 - attribute not applicable (Error)
  • E1120 - duplicate attribute (Error)
  • E1121 - unsafe block required (Error)
  • E1122 - macro invocation malformed (Error)
  • E1123 - invalid interpolation in string (Error)
  • E1124 - missing fn body (Error)
  • E1125 - invalid operator fixity (Error)
Back to Diagnostics index. Canonical phase route: /diagnostics/phases/parser