In general, the more complex the error, the more difficult the code to approve the error . Lexers and parsers are fairly simple (in practice) and therefore catch simple errors.
- Lexers pick up invalid character sequences that must make up the token
- , Bison/Yacc, , .
. /, . /, , , .
, / ( ) AST .
:
a.b();
ab();
lexer/parser - , . ?
.
, . .