Skip to main content

Module resilient

Module resilient 

Source
Expand description

Resilient parser for Shape language.

parse_program_resilient always returns a partial program and a list of typed parse issues. This is intended for editor/LSP scenarios where partial ASTs are more useful than hard parse failure.

Structs§

ParseError
A parse issue with span information.
PartialProgram
A partially parsed program — always produced, never fails.

Enums§

ParseErrorKind
Kind of resilient parse issue.

Functions§

parse_program_resilient
Parse a Shape program resiliently. Always succeeds.