aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-03-28 11:27:05 +0200
committerKim Alvefur <zash@zash.se>2023-03-28 11:27:05 +0200
commit0d2a9ef54abe35f2cce6ec2560873f08c69ae48d (patch)
treec688794ca90845c1780c2b44ab507b06963cb593 /teal-src
parent5a831462c3817a8b115f5b516672b9670c560158 (diff)
downloadprosody-0d2a9ef54abe35f2cce6ec2560873f08c69ae48d.tar.gz
prosody-0d2a9ef54abe35f2cce6ec2560873f08c69ae48d.zip
teal-src: Add a README with a few pointers to get started
Diffstat (limited to 'teal-src')
-rw-r--r--teal-src/README.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/teal-src/README.md b/teal-src/README.md
new file mode 100644
index 00000000..27677563
--- /dev/null
+++ b/teal-src/README.md
@@ -0,0 +1,29 @@
+# Teal definitions and sources
+
+This directory contains files written in the
+[Teal](https://github.com/teal-language/tl) language, a typed dialect of
+Lua. There are two kinds of files, `.tl` Teal source code and `.d.tl`
+type definitions files for modules written in Lua. The later allows
+writing type-aware Teal using regular Lua or C code.
+
+## Setup
+
+The Teal compiler can be installed from LuaRocks using:
+
+ luarocks install tl
+
+## Checking types
+
+```bash
+tl check teal-src/prosody/util/example.tl
+```
+
+Some editors and IDEs also have support, see [text editor
+support](https://github.com/teal-language/tl#text-editor-support)
+
+
+## Files of note
+
+`module.d.tl`
+: Describes the module environment.
+