readme update
This commit is contained in:
parent
b72448c62d
commit
7700e61019
1 changed files with 12 additions and 3 deletions
15
README.md
15
README.md
|
@ -6,7 +6,7 @@ A very basic interpreted programming language.
|
||||||
|
|
||||||
The goal of this project is to create a simple implementation of a BASIC-like language just to learn a few things along the way and practice my C programming skills.
|
The goal of this project is to create a simple implementation of a BASIC-like language just to learn a few things along the way and practice my C programming skills.
|
||||||
|
|
||||||
No need to do complex thing, just to create a simple interpreted language that can be used to do some arithmetics
|
No need to do complex things, just to create a simple interpreted language that can be used to do some arithmetics
|
||||||
and create for example a number guessing game.
|
and create for example a number guessing game.
|
||||||
|
|
||||||
I didn't really study how others languages works beforehand, I'm just guessing how I'm implementing things so that I can make mistakes to learn from.
|
I didn't really study how others languages works beforehand, I'm just guessing how I'm implementing things so that I can make mistakes to learn from.
|
||||||
|
@ -27,7 +27,10 @@ ToDo List:
|
||||||
- [X] allow to set variables
|
- [X] allow to set variables
|
||||||
- [X] read line comments
|
- [X] read line comments
|
||||||
- [ ] add modulus operator '%'
|
- [ ] add modulus operator '%'
|
||||||
- [ ] implement input_number()
|
- [ ] add support for multiple characters operators
|
||||||
|
- [ ] add inclusive operators like '!=', '>=', '<='
|
||||||
|
- [ ] add input_number() std function
|
||||||
|
- [ ] add type() std function
|
||||||
- [X] base of the CLI
|
- [X] base of the CLI
|
||||||
- [ ] evaluate expression from stdin
|
- [ ] evaluate expression from stdin
|
||||||
- [X] read a file
|
- [X] read a file
|
||||||
|
@ -135,10 +138,16 @@ end
|
||||||
```
|
```
|
||||||
abs(nb)
|
abs(nb)
|
||||||
sqrt,sin,cos,exp,ln,log etc.
|
sqrt,sin,cos,exp,ln,log etc.
|
||||||
print_number(data)
|
print_number(nb)
|
||||||
input_number()
|
input_number()
|
||||||
random_int(min, max)
|
random_int(min, max)
|
||||||
random_float(min, max)
|
random_float(min, max)
|
||||||
|
type(var) -> return the type of a var as int
|
||||||
|
is_int(var)
|
||||||
|
is_float(var)
|
||||||
|
print_string(str)
|
||||||
|
print_newline()
|
||||||
|
print_ascii(nb)
|
||||||
```
|
```
|
||||||
|
|
||||||
# Evaluator (draft)
|
# Evaluator (draft)
|
||||||
|
|
Loading…
Reference in a new issue