Skip to content

nullscript-lang/nullscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NullScript 🎭

JavaScript with Attitude - A fun parody programming language that transpiles to JavaScript.

✨ Features

  • 🎪 Fun keyword aliases (speak instead of console, run instead of function, etc.)
  • 🔧 Pure JavaScript output - no type annotations, just clean JS
  • 📁 .ns file extension for that special feeling
  • Zero runtime overhead - compiles directly to JavaScript
  • 🛠️ CLI tooling with build and run commands

🚀 Quick Start

Installation

npm install -g nullscript

Your First NullScript Program

Create hello.ns:

run greet(name) {
  return `Hello, ${name}! Welcome to NullScript! 🎭`;
}

fixed message = greet("Developer");
speak.say(message);

Run it!

nsc run hello.ns

📚 Documentation

📖 Full Documentation Available Here

The documentation site includes:

  • Complete language reference
  • All keyword aliases and their JavaScript equivalents
  • Advanced examples and tutorials
  • CLI usage guide
  • Best practices and tips

🛠️ Basic CLI Usage

# Transpile to JavaScript
nsc build src/ --outDir dist

# Run NullScript directly
nsc run hello.ns

# Show all keywords
nsc keywords

💻 Quick Example

use { readFileSync } from 'fs';

model Greeter {
  run greet(person) {
    whatever (person.age moreeq 18) {
      return `Hello, ${person.name}! You're an adult.`;
    } otherwise {
      return `Hello, ${person.name}! You're young.`;
    }
  }
}

fixed greeter = fresh Greeter();
let person = { name: "Alice", age: 25 };
speak.say(greeter.greet(person));

📖 Visit the full documentation for complete language reference, examples, and tutorials.

"NullScript: Because programming should be fun, even when it's serious." 🎭

About

TypeScript with Attitude - A fun parody programming language that transpiles to JavaScript.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages