Tree-sitter grammar for the Dictionary Specification Language (DSL) of ABBYY Lingvo that is also supported by some other popular dictionary applications.
This grammar tries to be as close as possible to Lingvo in the way how DSL files are interpreted. Because of that, the abstract syntax tree may not be consistent with how DSL dictionaries are displayed in other programs such as GoldenDict (particularly, the concern here are empty lines inside entry bodies).
As any other tree-sitter grammar, this grammar aims to be rather permissive than strict and at the same time capture as much detail as possible.
Also be aware that some extremely peculiar syntax (e.g. comments inside strings) that might be handled normally by Lingvo might not be parsed correctly by this grammar.
References:
- DSL Compiler
- Unofficial DSL Reference (in Russian)