This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
Releases: ArnabRollin/dwn
Releases · ArnabRollin/dwn
Added function creation support
Full Changelog: v0.12.0...v0.13.0
Added
- Function creation support (no arguments).
- Unknown names now raise errors.
Changed
- (dev notes): Migrated to
clap
API.
Added slicing, `quit/exit` functions, fixed bugs
Full Changelog: v0.11.0...v0.12.0
Added
- Slicing of arrays and strings (store in variable first).
quit
andexit
functions to immediately terminate the program with an optional code.
Changed
run_tokens
now returns aResult
to provide a base for the upcoming feature of error handling.
Fixed
- Fixed bug where commas in in strings were evaluated as separators.
- Errors in lexer now print on the correct line.
Added arrays
Full Changelog: v0.10.0...v0.11.0
Added
- Arrays
- Array pretty-print function (
format_array
)
Changed
- Literals now return the value provided (if there is no function or operator involved) instead of
None
.
Removed
- Unnecessary
match
insay
andshort_say
functions.
Added byte code compiler + runner
Full Changelog: v0.9.0...v0.10.0
Added
- Variable-options in CLI
- Bytecode compiler and runner (level 1)
- Better documentation in CLI.
Changed
- Now there are two runner functions:
run_tokens
andrun
(which tokenizes the line and callsrun_tokens
with the tokens) - Integers are now
i64
and floats aref64
Added more operators, functions, examples
Full Changelog: v0.8.0...v0.9.0
Added
!=
,lazy=
andlazy!=
operatorsvars
function which prints all the variablesint
andfloat
converter functions- Guessing game example to
README.md
Changed
- Changed the example in
README.md
.
Fixed
- Scope build-up bug has now been fixed
Added nested loops, `break` and scope return
Full Changelog: v0.7.0...v0.8.0
Added
- Nested scopes
break
statement- Scopes and if statements now return the value of the last statement.
Added more loops, operators
Full Changelog: v0.6.1...v0.7.0
Added
while
anduntil
loops==
,>
and<
compare operators+=
,-=
,*=
and/=
"operate and assign" operators- Functions now say their name on error.
Fixed variable arithmetic bug
Added boolean and `if` block
Full Changelog: v0.5.0...v0.6.0
Added
- Boolean type (
true
andfalse
) if
function
Fixed
- Fixed bug where two arguments cannot be provided to scope-accepting function.