hummingbird-js

0.0.1 • Public • Published

Hummingbird

Hummingbird is a language inspired by JavaScript, ML, and Swift. It features/will feature a usable type system with ML-inspired type inference, JavaScript code generation, and a concise syntax designed for readability.

Example

An obligatory hello world:

let welcome: String = "Hello "
func sayHello () -> Boolean {
  console.log(welcome + "world")
  return true
}
sayHello()

For more examples see the specification and manual.

Specification

The Hummingbird specification is designed to be both human- and machine-readable. It is organized into sections for each syntactical and semantic feature of the language.

Each feature has a <spec name="..."></spec> block containing the Hummingbird example source and the expected JavaScript output. These can then be parsed and a full suite of unit tests generated in test/spec/.

# Generating the spec tests 
npm run gen-spec
# Running those tests 
npm run test-spec

License

Released under the Modified BSD License. See LICENSE for details.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    2

Package Sidebar

Install

npm i hummingbird-js

Weekly Downloads

2

Version

0.0.1

License

none

Last publish

Collaborators

  • dirk