Banana Language Support for VS Code
INCREDIBLY IMPORTANT: MAKE SURE YOUR COMPUTER CAN RUN THIS MINIMUM 32GB OF RAM AND A 4070!
These system requirments are needed because this language uses an AI for its compiler.
Complete Banana programming language support with bundled compiler - no setup required!
Banana Language Syntax
The Banana programming language features a unique, human-readable syntax:
Basic Commands
say: [text]
- Output text to console
ask: [text]
- Get user input with prompt
note [text]
- Add comments to your code
Variables
name = ask: What is your name?
age = ask: How old are you?
Functions
function = GREET(
say: Hello there!
)
run GREET
Control Flow
if age > 18 (
say: You are an adult
)
if not but age = 18 (
say: You just became an adult!
)
if not (
say: You are a minor
)
Loops
loop(
say: This will run forever
)
for item in list (
say: item
)
More coming soon im just too eepy to add more right now
Requirements
- Python: Make sure Python is installed and available in your system PATH
- VS Code: Version 1.74.0 or higher
How It Works
The extension includes a bundled Banana compiler that:
- Converts your Banana code to JavaScript
- Executes the JavaScript using Node.js
- Handles user input/output in the VS Code terminal
Advanced Configuration (Optional)
If you want to use a custom compiler, you can configure:
- Banana: Compiler Path (
banana.compilerPath
): Path to Python executable (default: python
)
- Banana: Banana Compiler Script (
banana.bananaCompilerScript
): Path to custom Banana.py
file
Compiler Discovery
The extension searches for compilers in this order:
- Bundled compiler (included with extension) ⭐
- User's Downloads folder
- Current workspace folder
- Same directory as the
.banana
file
- Custom path from settings
Alternative Ways to Run
- Right-click in a
.banana
file → "Run Banana File"
- Command Palette (
Ctrl+Shift+P
) → "Run Banana File"
- Play button in editor title bar (recommended)
Troubleshooting
"Python not found" error
- Install Python from python.org
- Make sure Python is in your system PATH
"Node.js not found" error
- Install Node.js from nodejs.org
- Required for executing the compiled JavaScript
License
MIT License - see LICENSE file for details.
🍌 Happy Banana Coding! 🍌