Skip to content

yjlo123/yjlo-script

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
 
 
 
 
ui
 
 
 
 
 
 
 
 

YJLO Script

YJLO Script is a scripting programming language written in JavaScript with numerous convenient features.

Example

class Greeting {
	var _names
	
	// constructor
	@(list) {
		_names = list
	}
	
	func sayHelloToAll() {
		for name in _names {
			print("Hello", name + "!")
		}
	}
}

myGreeting := Greeting(["World", "JS", "YJLO"])
myGreeting.sayHelloToAll()

/* OUTPUT
Hello World!
Hello JS!
Hello YJLO!
*/

Features

  • lightweight
  • dynamic typing
  • higher order functions
  • closures
  • function member reference
  • classes and inheritance
  • decorator
  • utility libraries
  • online IDE and REPL

Online Demo

Documentation

Example codes

Contributing

Contributions to YJLO Script are welcomed and encouraged!
Open an issue if you find a bug or have a feature request.
Email me to ask any questions.
Submit a pull request if you want to contribute.

License

YJLO Script is available under the permissive MIT license.