การเรนเดอร์th-TH

The language corpus

คลังข้อมูลภาษาฟาเบอร์คือพจนานุกรมภาษาสาธารณะ โดยมีไดเรกทอรีระดับบนสุดหนึ่งรายการต่อคีย์เวิร์ด กลุ่มโอเปอเรเตอร์ หรือพื้นผิวประเภทภาษาหนึ่งรายการ คลังข้อมูลนี้เป็นแหล่งพัฒนาสำหรับ faber explain และเป็นอินพุตหลักสำหรับเมทริกซ์การคอมไพล์หลายเป้าหมาย

สถิติ#

  • ไฟล์ตัวอย่าง .fab จำนวน 292 ไฟล์
  • คำศัพท์ในรีจิสทรี index.toml จำนวน 174 รายการ
  • ไดเรกทอรีคีย์เวิร์ดและแนวคิดประมาณ 135 รายการ

โครงสร้าง#

corpus/
  functio/           # function keyword exemplars
  genus/             # record type exemplars
  si/                # conditional branch exemplars
  itera/             # iteration exemplars
  lista/ tabula/     # collection type exemplars
  tensor/ sparsa/    # tensor exemplars
  ad/                # capability call exemplars
  operatores/        # glyph / operator groups
  ...
  index.toml         # generated explain manifest

รูปแบบไฟล์#

ไฟล์ .fab แต่ละไฟล์เริ่มต้นด้วยฟรอนต์แมตเทอร์ TOML ที่อธิบายคำศัพท์นั้น:

+++
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"]
+++

functio saluta() {
    nota "Salve, Mundus!"
}

การใช้งาน#

faber explain functio       # show keyword reference
faber explain ≡             # show glyph reference
faber explain --search query # search across corpus
faber explain --list         # list all terms

หมวดหมู่#

คำศัพท์จัดเป็นหมวดหมู่ดังนี้: function, control-flow, type, collection, transfer, annotation, iteration, destructuring, testing, cli, concept, operator-group, existing-home