Paw Language

raw JSON →
1.1.20 verified Fri May 01 auth: no javascript

Paw is a simple JavaScript transpiler and runner that uses Indonesian-flavored syntax, allowing developers to write code in Bahasa Indonesia. Version 1.1.20 is the current stable release, updated sporadically. It differentiates itself by offering a localized programming experience for Indonesian speakers, translating keywords like 'if' to 'jika' and 'function' to 'fungsi'. It targets Node.js and is primarily a CLI tool.

error paww: command not found
cause Global install missing or not in PATH.
fix
Run 'npm install -g paww' and ensure npm global bin is in PATH.
error SyntaxError: Unexpected token
cause Paw syntax error in source file.
fix
Check Paw syntax; e.g., use 'cetak' not 'print'.
deprecated Some keywords may change in future versions; check changelog.
fix Stay updated with the repository.
gotcha Paw code is transpiled line-by-line; complex nested structures may fail.
fix Use simple syntax and report issues.
npm install paww
yarn add paww
pnpm add paww

Shows how to install the CLI globally, run a Paw file, and use the compiler programmatically.

// Install globally: npm install -g paww
// Create a file hello.paw with:
// cetak("Halo Dunia!")
// Run: paww hello.paw

// Or programmatic usage:
import { PawCompiler } from 'paww';
const compiler = new PawCompiler();
const jsCode = compiler.compile('cetak("Halo Dunia!")');
console.log(jsCode); // console.log("Halo Dunia!");