added custom syntax for DSA, minor changes to doc formatting

This commit is contained in:
2025-06-27 22:45:39 +01:00
parent afb2761a2b
commit 790bc597d3
12 changed files with 2900 additions and 110 deletions
+10 -14
View File
@@ -1,20 +1,16 @@
# DSC - Damn Simple Code
# This document is a work in progress!
# Nothing is final!
# DSC - Damn Simple Code</br>(This document is a work in progress</br>Nothing is final)
## Syntax
- we aim to make the syntax simple and easy to understand, this has the following benefits
- easy to write
- easy to parse
- little variation in syntax means we have to handle less cases in semantic analysis, meaning we will be able to create a working compiler quicker.
- easy to write
- easy to parse
- little variation in syntax means we have to handle less cases in semantic analysis, meaning we will be able to create a working compiler quicker.
## Types
- we should support the following types
- unsigned integer types (U8, U16, U32)
- signed integer types (I8, I16, I32)
- boolean type (Bool)
- struct types (Struct)
- dynamic types *(Dyn)
-
- unsigned integer types (U8, U16, U32)
- signed integer types (I8, I16, I32)
- boolean type (Bool)
- custom struct & dynamic types (Struct)