Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/littlewhitecloud/cloud
- Owner: littlewhitecloud
- License: mit
- Created: 2023-11-19T03:51:04.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-30T05:57:16.000Z (about 1 year ago)
- Last Synced: 2024-11-18T01:18:52.315Z (3 months ago)
- Topics: c, cpp, llvm, programming-language, python, simple
- Language: C
- Homepage:
- Size: 28.3 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#
Cloud
This is a toy pogramming language.
### Example
`helloworld`
```python
declare putchar(c: int) -> intdef 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.