https://github.com/zyugyzarc/dees
Dees is a compiled, dynamicaly typed, programming language made with C++ and Python.
https://github.com/zyugyzarc/dees
compiler cpp language programming-language python
Last synced: 11 months ago
JSON representation
Dees is a compiled, dynamicaly typed, programming language made with C++ and Python.
- Host: GitHub
- URL: https://github.com/zyugyzarc/dees
- Owner: zyugyzarc
- Created: 2021-09-09T02:45:51.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-28T11:39:06.000Z (almost 4 years ago)
- Last Synced: 2025-01-16T01:15:04.198Z (about 1 year ago)
- Topics: compiler, cpp, language, programming-language, python
- Language: Python
- Homepage:
- Size: 45.9 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Dees
Dees is a compiled, dynamicaly typed, programming language made with C++ and Python.
## Quickstart
(using the js syntax hilighter works well enough for this)
```js
fizzbuzz(n)->{
for( i=1 )( i y`)
* less than (`x < y`)
* equal to (`x == y`)
* modulo (`x % y`)
### Functions
functions can be defined as such
```js
func(x)->{
print("Hello ", x)
}
```
and called by
`func("Joe")`
recursive functions also work:
```js
fact(x)->{
if( x==0 ){
return 1
}
return x * fact(x-1)
}
```
you can also use lambdas or inline functions.
```js
//this is an inline function
(x)->{ print("Hello", x) }
```
and can be used to define functions normally
```js
func = (x)->{ print("Hello", x) }
```