From af9a7e5fcd83f3fab09c309e405f580b06dc5179 Mon Sep 17 00:00:00 2001 From: nodist Date: Sun, 3 May 2026 13:32:57 -0400 Subject: add syntax page --- docs/index.md | 9 +++++++-- docs/syntax/index.md | 11 +++++++++++ docs/type_system/index.md | 7 +++++++ mkdocs.yml | 2 ++ 4 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 docs/syntax/index.md create mode 100644 docs/type_system/index.md diff --git a/docs/index.md b/docs/index.md index e50ff97..8d651be 100644 --- a/docs/index.md +++ b/docs/index.md @@ -6,7 +6,7 @@ ## Overview -KPL is a statically typed and just in time compiled scripting language. The goal is to be something lower level then JavaScript/Python/Ruby/LUA but on a higher level then Go. +KPL is a statically typed and just in time compiled scripting language. The goal is to be something lower level then JavaScript/Python/Ruby/Lua but on a higher level then Go. This specification not only describes the language syntax but it's implementation because syntax reflects the implementation and vice versa. @@ -22,4 +22,9 @@ This specification not only describes the language syntax but it's implementatio * Minimal dependencies, most X64 Linux distros shouldn't need to install anything to compile and run the source -* Lightweight, can run a VPS with only one Core and 1 Gigabyte of RAM +* Lightweight, can run a VPS with 1 CPU Core and 1 Gigabyte of RAM + +## Contents + +1. ##### [Syntax](./syntax/index.md) +2. ##### [Type System](./type_system/index.md) diff --git a/docs/syntax/index.md b/docs/syntax/index.md new file mode 100644 index 0000000..4e9e898 --- /dev/null +++ b/docs/syntax/index.md @@ -0,0 +1,11 @@ +# Syntax + +--- + +## Comments + +``` +// This is a comment until the end of the line + +/* Comment block */ +``` diff --git a/docs/type_system/index.md b/docs/type_system/index.md new file mode 100644 index 0000000..59cd18d --- /dev/null +++ b/docs/type_system/index.md @@ -0,0 +1,7 @@ +# Type System + +--- + +## Templates + +A template is an incomplete type diff --git a/mkdocs.yml b/mkdocs.yml index ee3de01..6df0e4d 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -4,3 +4,5 @@ repo_url: https://git.kpl.dev/kpl-specification/ repo_name: Markdown Source nav: - Main: 'index.md' + - Syntax: 'syntax/index.md' + - Type System: 'type_system/index.md' -- cgit v1.2.3