Skip to content

v0.4.0

Compare
Choose a tag to compare
@isaiahshiner isaiahshiner released this 08 Apr 21:17

Install with pip install dit-cli or update with pip install dit-cli --upgrade. You should also run rm ~/.dit-languages to refresh the changes to the language config.

What's new?

The import statement

Load data from https:

import Names from 'https://raw.githubusercontent.com/isaiahshiner/dits/master/dits/Number.dit';

Or the local file system:

import MyClasses from '/home/user/MyClasses.dit';

This will download the file, parse it, and make all of it's components available behind the Names namespace. Classes, objects, and assigners can be referenced from imported namespaces. Now dits can be composed of different code from many other dits. There's also a new repo intended for exactly this purpose. Please add your own dits.

More examples of usage in this dit.

Other changes

  • Dit strings now support all basic escape characters, including \n, \t, \' and \".
  • An empty dit will now return file is empty and one with classes but no objects will return dit is valid, no objects to check.
  • Due to imported namespaces, assigners can no longer have the same name as a class or object.
  • Many bugfixes, which are not being heavily documented yet.