IF Commons GitHub

errors

What the parser finds that it cannot read (commons lang-sql 0002-sql-ast-parser FR-012): errors are values, each with a span and one sentence, and the lexer's errors are among them.

Spec: 0002-sql-ast-parser FR-012

Source: commons/lang-sql/src/errors.ts

1 of 3 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

describeParseErrorfunction
function describeParseError(e: ParseError): string

One sentence for a parse error.

Imported by 6 tests of the run (6 passed, 0 failed): the library's results

ParseErrortypeno test imports it
type ParseError =
  | { readonly kind: "expected"; readonly expected: string; readonly found: string; readonly span: Span }
  | { readonly kind: "unsupported"; readonly what: string; readonly span: Span }
  | { readonly kind: "too-deep"; readonly span: Span }
  | { readonly kind: "lex"; readonly error: LexError };

An error of the parser.

spanOffunctionno test imports it
function spanOf(e: ParseError): Span

Where an error is.

Titles, headings, exports, tables, columns and requirements. Esc closes.