Corescript
A dynamically typed, functional-first, object-oriented, concurrent, general-purpose, embeddable scipting and programming language (for dotnet core 2.0).
Install / Use
/learn @stephanbruny/CorescriptREADME
CoreScript
A dynamically typed, functional-first, object-oriented, concurrent, general-purpose, embeddable scripting and programming language (for dotnet core 2.0).
CoreScript is written in F# (www.fsharp.org).
Documentation (in progress)
Examples
see Script-Folder
Compilation
As easy as it can be with .net core:
Install dotnet core 2.0 (https://docs.microsoft.com/en-US/dotnet/core/).
- Download or clone this repository.
- open a terminal and goto
Source- folder - run
dotnet build - verify installation
- run
dotnet test ../Test- will run the NUnit - test -project - run
dotnet run Script/all-tests.cor- will run the corescript-tests
- run
Build
To create the executable use dotnet publish (see https://docs.microsoft.com/en-US/dotnet/core/tools/dotnet-publish?tabs=netcore2x)
Current Status
!!! NOT READY FOR PRODUCTION !!!
- Parser: Alpha-State
- Interpreter: Alpha-State
- Runtime: in development
- JIT-Compiler: not started (currently syntax-tree-interpreter only)
TODOs
- ~~Bit-Operations via Operators~~
- ~~file path handling for
import~~ - Runtime
- Http
- request-method fot HTTP-clients
- Strings
- match-method (regular expressions)
- format-method (like sprintf)
- support other encodings than UTF-8
- Assert-Module: implement more than just
assert(<true/false>, <error message>)(e.g. equal, notEqual, throws, etc.) - Buffer-Module
- ~~Console-Module~~
- Crypto-Module
- Date-Module
- JSON/XML-Serialization-Modules
- Streams-Module
- Supervisor-Module (to control agents)
- ZLib-Module
- Http
- Packaging and importing modules via NuGet (or other?)
- JIT-compilation via MSIL
Future
- WebAssembly backend
- .NET-FFI
- C/C++-FFI
Syntax Highlighting
A tmLanguage-Definition is included in this repository for Visual Studio Code.
For now, you can simply copy&paste the corescript-0.1-folder into you VSCode-Extensions folder.
Contribution
I'd be very happy about any contributions to the project, as long as these rules are followed:
- for now, F# only
- no further dependencies
- target dotnet core 2.0
- KISS
- add test
License
This project is licensed under the Apache 2.0 License
Related Skills
node-connect
345.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
104.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
