Diagnostics
klar check supports human-readable and machine-readable diagnostics.
Human Mode
klar check examples/demo.klar
Prints formatted errors with location and fix suggestions.
JSON Mode
klar check examples/demo.klar --format json
Success output:
[]
Error output includes:
codeseveritymessagelocation(file,line,col)actionsfixes
Current Code Families
E001: parse errorsE010: undefined name/import issuesE020: type mismatchE030: argument mismatchE040: invalid operator typesE050: iteration type issuesE099: fallback category