# configuration/strings/syntax.strings.ts

> 9 lines of code and 5 definitions.

Tree: Code Parse
Language: typescript
Layer: product
Canonical: https://banes-lab.com/anatomy/code-parse#file-code-parse-configuration-strings-syntax-strings-ts
Source text: https://banes-lab.com/source/code-parse/configuration/strings/syntax.strings.ts.txt

Listed in [configuration/strings](https://banes-lab.com/api/source/code-parse/configuration/strings.md), after [configuration/strings/grammar.strings.ts](https://banes-lab.com/source/code-parse/configuration/strings/grammar.strings.ts.md).

## Definitions

- `notPreloaded` (lexical_declaration, line 7, exported)
- `noGrammar` (lexical_declaration, line 11, exported)
- `NO_TREE` (lexical_declaration, line 1, exported)
- `PARSE_FAILED` (lexical_declaration, line 3, exported)
- `PARSE_INCOMPLETE` (lexical_declaration, line 5, exported)

## Contained in

- [configuration/strings](https://banes-lab.com/anatomy/code-parse/folder-code-parse-configuration-strings.md)

## Used by

- [core/converters/syntax.converter.ts](https://banes-lab.com/source/code-parse/core/converters/syntax.converter.ts.md)

## Linked from

- [core/converters](https://banes-lab.com/anatomy/code-parse/folder-code-parse-core-converters.md)

## Source

```typescript
export const NO_TREE = "tree-sitter produced no tree for source";

export const PARSE_FAILED = "tree-sitter failed to parse source";

export const PARSE_INCOMPLETE = "tree-sitter parse did not span full source after retries";

export const notPreloaded = function notPreloaded(language: string): string {
    return `@govlab/code-parse: language "${language}" is not preloaded. Call ensureLanguages([...]) before parseCodeSync.`;
};

export const noGrammar = function noGrammar(language: string): string {
    return `no tree-sitter grammar for language "${language}"`;
};
```
