E0108: syntax
E0108 syntax — a syntax error.
A compile-time error of soma check, the checker of the Soma programming language (soma explain E0108).
The rule
A syntax error means the parser could not read part of the program as Soma. This binary reports each syntax error under a more precise code from E1001 to E1010 (for example E1001 when one token was expected and another found, E1003 for a return type written on a handler instead of on its face signal), never as E0108. Run soma explain with the code the diagnostic prints to see what that class means; the message itself names the token expected or the correction.
When you see it
soma check never prints E0108: every syntax error is reported with one of the codes E1001 to E1010, chosen from its message (E1001 expected token, E1003 return type on a handler, E1010 lexical, and so on), both in the plain output and in --json. E0108 is the code the syntax kind would have in the table of check errors, but no output path uses it.