Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/littlewhitecloud/cloud

A toy language
https://github.com/littlewhitecloud/cloud

c cpp llvm programming-language python simple

Last synced: 16 days ago
JSON representation

A toy language

Awesome Lists containing this project

README

        

#

Cloud

This is a toy pogramming language.

### Example
`helloworld`
```python
declare putchar(c: int) -> int

def main() -> int:
putchar("H")
putchar("e")
putchar("l")
putchar("l")
putchar("o")
putchar(",")
putchar(" ")
putchar("W")
putchar("o")
putchar("r")
putchar("l")
putchar("d")
putchar("!")
putchar("\n")
return '\0'

```

### Develop
`linux` & `windows`
#### You have to install make and LLVM

```console
git clone https://github.com/littlewhitecloud/cloud
mkdir obj
make -j2
./cloud example/helloworld.cd -v
```

### Goals
- As simple as Python
- As fast as C++
- Loose grammar checking
- More warnings instead of errors

#### Thanks to @Akuli, the "jou" programming language really inspired me a lot.