Skip to content

Releases: sacalon/sacalon

v1.4.1

20 Feb 16:18
afa6901
Compare
Choose a tag to compare

Bug fixes

v1.4.0

18 Sep 10:32
Compare
Choose a tag to compare

New features

  • add builtin range function
function main(): int {
    // prints 1 to 10
    for i in range(1,11){
        print(i)
    }
    return 0
}
  • add asin, acos, asinh, acosh, exp, frexpr, ldexp, log, log10, fdim, sqrt, ceil, floor, NaN, max, min functions to math library, see documentation.
  • Showing error for overloading function's return type.

Changes

  • Speedup parsing and compiling

Bug fixes

  • fix passing list to for in statement

v1.3.12

07 Sep 08:57
Compare
Choose a tag to compare

New features

  • add support for multiline C-style comment
  • add round function to math library

Changes

  • Hascal relicensed from MIT license to BSD-3-Clause license

Bug fixes

  • fix string subscripting bug
  • fix empty list parsing bug
  • fix random library bugs

v1.3.11

09 Aug 13:05
Compare
Choose a tag to compare

New features

  • add uniform distribution-based random number generator called uniform in random library

Changes

  • change static decorator name to static_function name
  • rename times function to multiplies in functional library
  • rename if_and, if_or, if_not functions to _and, _or, _not in functional library

Bug fixes

  • fix package manager bug

v1.3.9

04 Jul 04:56
Compare
Choose a tag to compare

New features

  • add hascal list command to list all available packages
  • add hascal init command to create a new project, that generates config.json, .gitignore and src/app.has files
  • add hascal build command to build project
  • add hascal run command to run project
  • add string_reverse(str:string) function to strings module
  • add assert function to runtime library
  • add no_std compiler option
  • add filename config option

Changes

  • change emitting std::string for strings to string(because in showing assertion errors, std::string is illusory).
  • use sys.exit instead of exit in src/core/h_help.py(@mmdbalkhi)
  • fix importing system bugs
  • improve typeof builtin function

Bug fixes

  • fix assigning NULL to arrays and pointers bug, #36.
  • fix check_g++ config option bugs
  • fix not defined consts when importing packages
  • fix random library bug
  • fix browser library bug

Removed

  • remove windows,browser libraries

v1.3.9-rc.2

30 May 16:03
Compare
Choose a tag to compare
v1.3.9-rc.2 Pre-release
Pre-release

Bug fixes

  • fix a critical bug in importing system

v1.3.9-rc.1

29 May 15:46
Compare
Choose a tag to compare
v1.3.9-rc.1 Pre-release
Pre-release

Changes

  • upgrade importing system
  • some changes in self hosted compiler(NOTE: self hosted compiler is not ready yet)

Bug fixes

  • fix import bug when importing one package in multiple files
  • fix self hosted bugs

v1.3.9-rc

25 May 06:27
Compare
Choose a tag to compare
v1.3.9-rc Pre-release
Pre-release

Changes

Bug fixes

  • fix http library bug
  • fix cpp importing bug

v1.3.9-beta

11 May 05:58
Compare
Choose a tag to compare
v1.3.9-beta Pre-release
Pre-release

New features

  • passing functions as arguments
function f(x: int): int {
    return x + 1
}

function g(func:Function[int]int): int {
    return func(1)
}

Changes

  • upgrade importing system

Bug fixes

  • fix pyinstaller build issue

v1.3.9-alpha.1

28 Apr 12:48
Compare
Choose a tag to compare
v1.3.9-alpha.1 Pre-release
Pre-release

Changes

  • add download,upload,post functions to http library
  • https support for http library
  • add windows library(that includes windows.h)
  • add browser library to open urls in default browser(now only supports windows)

Bug fixes

  • fix linker flag import bug in cuse statement