Versions follow Semantic Versioning (<major>
.<minor>
.<patch>
)
- Fix incorrect output type for
<split_on>
; the main loop contained astr2num
call but the function should only return aLoxArray
of strings.
- Add
<map>
to pure-lox stdlib headers.
- #4 Add a basic import mechanism
- Supports "stdlib" imports (
<header_name>
) and path imports ("path/to/file"
) - Recursive
include
not supported - Imported source assumed to be valid code
- Supports "stdlib" imports (
- Add initial pure-lox stdlib headers:
<array_sum>
<hello_world>
<split_on>
- #18 Add additional builtins:
re_findall
re_match
re_search
re_sub
- #20 Fixed string representation of nested
LoxArray
s
- Add a
LoxArray
join
method to join an array of strings together - Add a
LoxArray
slice
method to slice the array into a new instance
- Pass the actual arguments for
str2num
instead of alist
generic.
- #19 Fix incorrect generation of string literals during scanning.
- Add additional builtins:
str2num
- Add support for block comments (
/* ... */
) - Add an array object (
LoxArray
) - Add additional builtins:
array
divmod
input
len
mean
median
mode
ord
read_text
std
string_array
- Tokens now store end line/column locations, allowing for better support of multiline code constructs (e.g. strings)
- Fixed incorrect token metadata for multiline strings
Initial Release!!! 🥯🎉🥳