tree-sitter-lexd
Version:
tree-sitter parser of Apertium lexd files.
40 lines (31 loc) • 608 B
Plain Text
============
minimal file
============
PATTERNS
X
LEXICON X
a
(source_file
(pattern_block
(pattern_start)
(pattern_line
(pattern_token whole: (lexicon_reference name: (identifier)))))
(lexicon_block
(lexicon_start)
name: (identifier)
(lexicon_line
(lexicon_segment
whole: (lexicon_string)))))
=========
Colons
=========
PATTERNS
X: :X
(source_file
(pattern_block
(pattern_start)
(pattern_line
(pattern_token left: (lexicon_reference name: (identifier)) (colon))
(pattern_token (colon) right: (lexicon_reference name: (identifier))))))