Skip to content

v0.4.0

Compare
Choose a tag to compare
@mitchpaulus mitchpaulus released this 23 Jul 00:36
· 113 commits to main since this release

0.4.0 - 2021-07-22

Added

  • Ability to load in JSON data
  • Ability to load in XML data
  • A print statement is now allowed within a function. Previously it
    was only allowed at the root scope of a file.
  • Added three new built in functions: type, guid, and replace.
  • Added formatting option -f or --fmt, analogous to gofmt.
  • When loading a delimited text file, there is an option to skip a
    number of header rows.

Changed

  • BREAKING: The grammar for imports was updated. The as 'name'
    token has been now forced to be an identifier, not a string. All
    strings will need to have the quotations removed, and the name made
    into a valid identifier.

  • The URI portion of the import statement now is generalized to be an
    expression, instead of a string. This means that the URI for an import
    can now be dynamic. This is not a breaking change.

  • Box characters can now be used for inline data tables. Generally, the
    formatter will be used to redraw the inline data tables with these
    box characters.

Fixed

  • The program now exits immediately on any errors in lexing or parsing.
    Previously would still try to walk the broken syntax tree.