mirror of
https://github.com/CPunch/Cosmo.git
synced 2024-11-22 07:20:05 +00:00
better README
This commit is contained in:
parent
aaa37c61d0
commit
f0b666f623
15
README.md
15
README.md
@ -4,7 +4,7 @@ Cosmo is a portable scripting language loosely based off of Lua. Cosmo easily al
|
|||||||
```
|
```
|
||||||
proto Vector
|
proto Vector
|
||||||
function __init(self)
|
function __init(self)
|
||||||
self.vector = {}
|
self.vector = []
|
||||||
self.x = 0
|
self.x = 0
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -32,13 +32,12 @@ for (var i = 0; i < 4; i++) do
|
|||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
> 3 : 0
|
```
|
||||||
|
3 : 0
|
||||||
> 2 : 1
|
2 : 1
|
||||||
|
1 : 2
|
||||||
> 1 : 2
|
0 : 3
|
||||||
|
```
|
||||||
> 0 : 3
|
|
||||||
|
|
||||||
# C API
|
# 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.
|
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.
|
@ -1,6 +1,8 @@
|
|||||||
#ifndef CTABLE_H
|
#ifndef CTABLE_H
|
||||||
#define 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 "cosmo.h"
|
||||||
#include "cvalue.h"
|
#include "cvalue.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user