Welcome to the repository of the Silk Language, the reference implementation of the HCLAN language.
Silk is an Interpreted, Object Oriented language written in C. It is also dynamically typed and has a very modern syntax, much similar to Java and Python. This interpreter is inspired from cLox of Crafting Interpreters. This project is intended to be the reference implementation of the HCLAN language since the latter is written in Java, which has several performance issues regarding the speed.
- Any ANSI-C compiler (latest version is more preferable)
To run your first program, fire up you favourite text editor and copy the following lines to hello.slk
file:
# A Simple Hello, World! program
print "Hello, world!";
print "HCLAN is interesting!";
Then open a new terminal in the same directory as the file and run:
$ silk hello.slk
For windows users: just run the same command.
You'll see the following output on your terminal:
Hello, world!
HCLAN is interesting!
If you've any questions regarding this project, please check our documentation or file an issue.
Contributions are welcome, To contribute please refer to details here.
Copyright © 2024 M.V.Harish Kumar.
This project is BSD-2 licensed.
This project is still In its baby steps. Many features need to be added. Thus the stability of the syntax is not guaranteed. However, most features is planned to be retained. Contributers can give their contribution to this project to make this project stable.