Gscript
A new programming language built on TypeScript ✨
Install / Use
/learn @gscript-lang/GscriptREADME
gScript
A new programming language built on TypeScript ✨
Note: This is the interpreter/"compiler" lib, the CLI tool is used in the given examples.
IN EARLY DEVELOPMENT STAGES
Install
Prerequisites:
- Node JS
- NPM
Using NPM
npm install gscript-cli -g
Using Yarn
yarn global add gscript-cli
Running A File
gs run ./path/to/file.gs
<br>
or
<br>
gscript run ./path/to/file.gs
Syntax
At the moment, there are only two keywords, def, and log.
<br/>
def defines a variable and it's corresponding value.
<br/>
log logs something in the console
<br/>
// at the start of a line means that it is a comment.
<br/>
Examples:
def HW = "Hello World"
log HW
// returns Hello World
<br/>
def MyArr = ["MyArray"]
log MyArr
// returns ["MyArray"]
<br>
// log a string
log "This is a string"
// returns This is a string
<br>
// split a string and log it.
log "This is a string".split(" ")
// returns ["This", "is", "a", "string"]
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate 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
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
