1.2.4 • Published 1 year ago

gscript-compiler v1.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.1.15-methods

2 years ago

1.1.10-methods

2 years ago

1.1.11-methods

2 years ago

1.1.9-methods

2 years ago

1.1.8-methods

2 years ago

1.1.14-methods

2 years ago

1.1.7-methods

2 years ago

1.1.13-methods

2 years ago

1.1.12-methods

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago