A self-contained compiler, lexer, parser, and transpiler for the GooberScript language, a friendly syntax that compiles to clean ES2020 JavaScript. Version 1.2.0 targets browser and Node.js environments, distributed via npm and CDN (jsDelivr). Key differentiators: includes a complete toolchain in a single file (goobc.js), exposes a global `Goobc` object for browser script tags, enforces mandatory file structure and unique syntax rules like the `yippee;` check marker. Ideal for educational platforms like CodeHS, with no external dependencies.
npm install gooberscript-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates loading the compiler via CDN, compiling a simple GooberScript program, and executing the transpiled JavaScript.
Ensure source begins with `dear goober;\n` and ends with `\nthanks, goober;` and each function contains `yippee;` once.
Append `ya;` after every statement, e.g., `holler("Hello") ya;`Only compile and run GooberScript from trusted sources; validate or sandbox if user-provided.
Access `result.errors` (array) instead of `result.error` (string).
Use CDN script tag: `<script src="https://cdn.jsdelivr.net/npm/gooberscript-compiler@1/goobc.js"></script>` or in Node.js: `import Goobc from 'gooberscript-compiler'`
Use `import Goobc from 'gooberscript-compiler'` then `Goobc.compile(source)`.
Start every GooberScript program with exactly `dear goober;` on its own line.
Add `yippee;` as the first statement inside each function body.
No dependency data recorded yet.