Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/softcircuits/silk
Simple Interpreted Language Kit (SILK). An easy way to add scripting and automation to your .NET applications.
https://github.com/softcircuits/silk
compiler csharp csharp-library interpreter lexical-analyzer parser
Last synced: 5 days ago
JSON representation
Simple Interpreted Language Kit (SILK). An easy way to add scripting and automation to your .NET applications.
- Host: GitHub
- URL: https://github.com/softcircuits/silk
- Owner: SoftCircuits
- License: mit
- Created: 2019-05-24T02:58:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-02T04:24:54.000Z (8 months ago)
- Last Synced: 2024-11-10T04:58:08.946Z (6 days ago)
- Topics: compiler, csharp, csharp-library, interpreter, lexical-analyzer, parser
- Language: C#
- Size: 392 KB
- Stars: 17
- Watchers: 5
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: License.txt
Awesome Lists containing this project
README
# Silk Library
[![NuGet version (SoftCircuits.Silk)](https://img.shields.io/nuget/v/SoftCircuits.Silk.svg?style=flat-square)](https://www.nuget.org/packages/SoftCircuits.Silk/)
```
Install-Package SoftCircuits.Silk
```## Overview
![Sample Program Screenshot](/docs/ScreenShot.png)
The Simple Interpreted Language Kit (SILK) is a .NET class library that makes it easy to add scripting and automation to your .NET applications.
The library includes three main components. A compiler, a compiled program, and a runtime. The compiler compiles the Silk source code to bytecode. This allows faster execution and also catches all source code syntax errors before running the Silk program.
The compiler produces a compiled program. A compiled program can be saved to a file, and later read from a file. This allows you to load and run a Silk program without recompiling it each time.
Finally, the runtime component executes a compiled program.
The main power of this library is that it allows you to register your own functions and variables with the compiler and those functions and variables can be called from the Silk program. When one of your registered functions is called, the `Function` event is raised, allowing the host application to provide key functionality specific to the host application's domain.
The Silk language itself is designed to be relatively easy to learn. It has no semicolons or other excessive punctuation, and the language is not case sensitive.
This project includes both the class library (Silk), and a test project/solution (TestSilk). If you download everything and run it, it will run the TestSilk application. You just need the class library to include Silk in your own projects.
## See Also:
- [Using the Silk Library](docs/UsingLibrary.md)
- [The Silk Language](docs/SilkLanguage.md)
- [Internal Functions and Variables](docs/InternalFunctions.md)
- [Sample Source Code](docs/Sample.md)