better README

This commit is contained in:
CPunch 2021-01-08 23:53:02 -06:00
parent aaa37c61d0
commit f0b666f623
2 changed files with 9 additions and 8 deletions

View File

@ -4,7 +4,7 @@ Cosmo is a portable scripting language loosely based off of Lua. Cosmo easily al
```
proto Vector
function __init(self)
self.vector = {}
self.vector = []
self.x = 0
end
@ -32,13 +32,12 @@ for (var i = 0; i < 4; i++) do
end
```
> 3 : 0
> 2 : 1
> 1 : 2
> 0 : 3
```
3 : 0
2 : 1
1 : 2
0 : 3
```
# C API
The Cosmo C API is currently undocumented, however as soon as development has reached a stable state documentation on full language features and the C API will start.

View File

@ -1,6 +1,8 @@
#ifndef CTABLE_H
#define CTABLE_H
/* TODO: rewrite this table implementation. compared to other languages (including python!) this table is verrryyyy slow */
#include "cosmo.h"
#include "cvalue.h"