NinCodeIDE
NinCodeIDE — A Logic-First Programming Language
NinCode is a simple programming language I created as a side project. To be honest, there isn't a massive amount to do with it yet, but it was a ton of fun to build.
The language is very strict with syntax, mostly because I designed it to make sense to me while I was coding it lol. It started its life in Java (written entirely by hand, no AI), but since I wanted it to be accessible to everyone without them needing to set up a Java environment, I ported the logic to GDScript and built this web-based IDE using Godot.
Quick Documentation (v1.3)
Data Types
int: Standard integers (e.g.,10,-5).astr: Strings and single characters (e.g.,"Hello","A").bool: Boolean values (trueorfalse). Note: 0/1 are not allowed.
Core Commands
1. Input & Output
nin.out argument;— Prints a string or variable.nl;— Adds a new line (essential sincenin.outdoesn't do it automatically).nin.in dataType variableName;— Takes user input and saves it to a new variable.
2. Variable Management
nin.setvar dataType variableName value;— Creates and sets a variable.nin.math resultVar val1 operator val2;— Handles+,-,*,/and saves to a new variable.nin.rand varName min max;— Generates a random integer in a range.
3. Logic & Flow
- Conditionals:
if condition : trueAction : falseAction;- Example:
if score > 10 : nin.out "Win" : pass;
- Example:
- Loops:
nin.loop iterations : command1 : command2;- Note:
nin.setvarcannot be used inside loops.
- Note:
- Delay:
nin.delay milliseconds;— Pauses execution (defaults to 1000ms). - Pass:
pass;— Does nothing (useful forifstatements).
How to Run
(Java Version)
The IDE looks for a file called script.nc. Write your code line-by-line, and the interpreter will execute them sequentially. If everything is correct, you'll see Code Executed Successfully!. If not... well, look out for the Error at line X! message!
Everything here is a work in progress. If you find a weird syntax bug, let me know!
| Status | Released |
| Category | Tool |
| Platforms | HTML5 |
| Author | Ninjazz |
| Made with | Godot |
| Tags | Godot, ide, Text based |
| AI Disclosure | AI Assisted, Code |
