Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 189c21667b | |||
| abdc6d67dc | |||
| d89833b705 |
@@ -1 +1,3 @@
|
||||
/c2
|
||||
/.idea/*
|
||||
!/.idea/c_cpp_properties.json
|
||||
|
||||
Generated
+12
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"configurations": [
|
||||
{
|
||||
"name": "CLion",
|
||||
"includePath": [
|
||||
"${workspaceFolder}/v0/*"
|
||||
],
|
||||
"cStandard": "c89",
|
||||
}
|
||||
],
|
||||
"version": 4
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
# Types
|
||||
C2 has both built-in types and user-defined types.
|
||||
|
||||
## Builtin types
|
||||
C2 has the following types builtin:
|
||||
- `void`
|
||||
- `i8`
|
||||
- `i16`
|
||||
- `i32`
|
||||
- `i64`
|
||||
- `u8`
|
||||
- `u16`
|
||||
- `u32`
|
||||
- `u64`
|
||||
|
||||
## Type Aliases
|
||||
Types can be aliased to different names using the alias keyword.
|
||||
Here's a list of the default builtin aliases.
|
||||
|
||||
```c2
|
||||
alias int = i32;
|
||||
alias uint = u32;
|
||||
alias char = u8;
|
||||
alias string = char[];
|
||||
```
|
||||
Reference in New Issue
Block a user