1.2.4 • Published 3 years ago

gscript-compiler v1.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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 or

gscript run ./path/to/file.gs

Syntax

At the moment, there are only two keywords, def, and log. def defines a variable and it's corresponding value. log logs something in the console // at the start of a line means that it is a comment.

Examples:

def HW = "Hello World"
log HW
// returns Hello World
def MyArr = ["MyArray"]
log MyArr
// returns ["MyArray"]
// log a string
log "This is a string"
// returns This is a string
// split a string and log it.
log "This is a string".split(" ")
// returns ["This", "is", "a", "string"]
1.2.0

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.1.15-methods

3 years ago

1.1.10-methods

3 years ago

1.1.11-methods

3 years ago

1.1.9-methods

3 years ago

1.1.8-methods

3 years ago

1.1.14-methods

3 years ago

1.1.7-methods

3 years ago

1.1.13-methods

3 years ago

1.1.12-methods

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago