added custom syntax for DSA, minor changes to doc formatting
This commit is contained in:
+10
-14
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user