blob: 044720890dd57e6e49c731f7a8ac0ec0d377406d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
## toc
`toc` is a language which compiles to C.
---
### About
`toc` is currently in development. **It is not a stable language,
and there are almost definitely bugs right now.**
I would recommend against using it for anything big or important.
Many parts of it may change in the future.
`toc` improves on C's syntax (and semantics) in many ways,
To declare `x` as an integer and set it to 5,
you can do:
```
x := 5; // Declare x and set x to 5 (infer type)
x : int = 5; // Explicitly make the type int.
x : int; x = 5; // Declare x as an integer, then set it to 5.
```
`toc` is statically typed and has many of C's features, but
it is nearly as fast in theory.
See `docs` for more information (in progress).
`tests` has some test programs written in `toc`.
|