SkillAgentSearch skills...

Gscript

A new programming language built on TypeScript ✨

Install / Use

/learn @gscript-lang/Gscript
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated3y ago
Forks1

Languages

JavaScript

Security Score

70/100

Audited on Oct 8, 2022

No findings