This is a template library for Dosato, a programming language.
More information about Dosato can be found here.
This repository contains the dosato_source folder, in this folder you must put dosato.h
and libdosato.dll/so
, You get them in the same folder Dosato installs too, which you can download here: official repository.
To use this library, you need to include the dosato.h
file in your project and link the libdosato
.dllor
libdosato.so` file to your project.
If you have Dosato installed, you can find the .dll/.so file in the installed Dosato directory.
For this particular demo, use the following command to compile the program:
make
This will generate the .dll or .so file for your library.
To test and use your library from within Dosato, open your script file and use the import
keyword to import your library.
Dosato will automatically append the .dll or .so file to the path you provide in the import statement.
import "path/to/your/library"
After importing your library, you can use the functions defined in your library.
import "path/to/your/library"
do sayln(sumTest(5, 10))
The test.to
file in contains an example of how to use this specifc library.