The language corpus
Kho ngữ liệu ngôn ngữ Faber là từ điển ngôn ngữ công khai: mỗi từ khóa, nhóm toán tử hoặc bề mặt kiểu ngôn ngữ có một thư mục cấp cao nhất riêng. Đây là nguồn phát triển cho faber explain và đầu vào chính cho các ma trận biên dịch đa mục tiêu.
Thống kê#
- 292 tệp exemplar
.fab - 174 thuật ngữ trong registry
index.toml - Khoảng 135 thư mục từ khóa và khái niệm
Bố cục#
corpus/
hàm/ # function keyword exemplars
kiểu/ # record type exemplars
nếu/ # conditional branch exemplars
lặp/ # iteration exemplars
danh_sách/ bảng/ # collection type exemplars
ten_xo/ thưa/ # ten_xo exemplars
gọi/ # capability call exemplars
operatores/ # glyph / operator groups
...
index.toml # generated explain manifestĐịnh dạng tệp#
Mỗi tệp .fab bắt đầu bằng phần frontmatter TOML mô tả thuật ngữ:
+++
term = "functio"
kind = "keyword"
category = "function"
canonical = true
summary = "Declares a named function or method."
syntax = "functio <name>(<params>) [modifiers] [→ <type>] [⇥ <error-type>] <block>"
aliases = ["function"]
related = ["→", "⇥", "redde", "sponte"]
+++
hàm saluta() {
ghi_chú "Salve, Mundus!"
}Cách sử dụng#
faber explain hàm # show keyword reference
faber explain ≡ # show glyph reference
faber explain --search query # search across corpus
faber explain --list # list all termsDanh mục#
Các thuật ngữ được sắp xếp theo danh mục: function, control-flow, type,
collection, transfer, annotation, iteration, destructuring,
testing, cli, concept, operator-group, existing-home.