Skip to content

harishtpj/SilkLang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

SilkLang

Welcome to the repository of the Silk Language, the reference implementation of the HCLAN language.

About

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.

Requirements

  • Any ANSI-C compiler (latest version is more preferable)

Installation

Usage

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!

Support

If you've any questions regarding this project, please check our documentation or file an issue.

Contributing

Contributions are welcome, To contribute please refer to details here.

Contributors

License

Copyright © 2024 M.V.Harish Kumar.

This project is BSD-2 licensed.

Project status

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.