Skip to content

Releases: sco1/pylox

Release v0.5.1

05 Feb 00:59
Compare
Choose a tag to compare

Fixed

  • Fix incorrect output type for <split_on>; the main loop contained a str2num call but the function should only return a LoxArray of strings.

Added

  • Add <map> to pure-lox stdlib headers.

Release v0.5.0

01 Feb 03:45
Compare
Choose a tag to compare

Added

  • #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
  • Add initial pure-lox stdlib headers:
    • <array_sum>
    • <hello_world>
    • <split_on>
  • #18 Add additional builtins:
    • re_findall
    • re_match
    • re_search
    • re_sub

Fixed

  • #20 Fixed string representation of nested LoxArrays

Release v0.4.0

02 Dec 01:00
f56c5a6
Compare
Choose a tag to compare

Added

  • 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

Release v0.3.2

01 Dec 22:55
Compare
Choose a tag to compare

Fixed

  • Pass the actual arguments for str2num instead of a list generic.

Release v0.3.1

01 Dec 19:33
Compare
Choose a tag to compare

Fixed

  • #19 Fix incorrect generation of string literals during scanning.

Release v0.3.0

01 Dec 17:15
Compare
Choose a tag to compare

Added

  • Add additional builtins:
    • str2num

Release v0.2.0

30 Nov 03:37
Compare
Choose a tag to compare

Added

  • 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

Changed

  • Tokens now store end line/column locations, allowing for better support of multiline code constructs (e.g. strings)

Fixed

  • Fixed incorrect token metadata for multiline strings