Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

MathScript v1.0.1

Latest
Compare
Choose a tag to compare
@foxypiratecove37350 foxypiratecove37350 released this 09 Aug 17:45
· 13 commits to main since this release

Added

  • return keyword in multi-line functions to return a value
  • continue keyword to skip to the next iteration in for and while loops
  • break keyword to stop the loop in for and while loops
  • exec() function to execute a code in a string or a file
  • length() function to return the length of a string or a list
  • Comments starting by the # symbol and ending by a new line.

Changed

  • The list concatenation, so now we need to add two list together to concatenate them:
    (MathScript) >>> (1, 2, 3, 4, 5) + (6, 7, 8, 9, 10)
    (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    
    instead of the old confusing syntax where we needed to add the element to the list:
    (MathScript) >>> (1, 2, 3, 4, 5) + 6 + 7 + 8 + 9 + 10
    (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    
  • Create automatically the ZIP file in the build process & always undo the changes to the shell.py script, altrough if there was an error.

Fixed

  • Now functions that only execute code will return null (instead of Python's None), but this won't be shown in the interactive shell because it's an implicit return.

Next version changes

In the next minor versions of MathScript will be implemented these changes:

  • A class & modules system
  • Instance functions for the built-in data-types
  • (Not sure) A package manager, MathGet

Installer

Added

  • An update feature to be able to update MathScript without having to uninstall & reinstall it completely
  • Now there's also an AppImage version of the installer, for Linux.
  • Now uses threads for downloading, unzipping and uninstalling

Fixed

  • Since the installer accept now the fact that you can don't update, the repair feature now reinstall the current installed version
  • Now the icon size range from 16×16 to 256×256, instead of the only 16×16 icon of before