A Python-inspired programming language written in C, focused on real usability, clean architecture, and long-term growth into a serious everyday language.
Nearoh is not a toy parser or throwaway syntax project. It is being built as a practical language/runtime I would genuinely want to use—while maintaining full control over internals, performance paths, and future low-level expansion.
Website: https://nearoh-coding-language.base44.app
GitHub: https://github.com/ReeceGilbert/Nearoh-Coding-Language
Nearoh aims to combine the productivity and readability of Python with the control and extensibility of a C-backed runtime.
- Familiar Python-style workflow
- Clean readable syntax
- Classes, objects, methods, and productivity-first scripting
- Runtime written in C for control and performance
- Expandable native bridge for machine-facing systems
- Long-term editor / IDE environment built around the language
- Strong architecture over rushed features
This project is being built to become a serious personal-use language, not just a demo.
Nearoh now runs real multi-feature programs from the command line with multiple developer modes and improved diagnostics.
Implemented systems include:
- Lexer
- Parser
- AST generation
- Runtime evaluator
- Scope / environment model
- Variables and reassignment
- Arithmetic
- Strings
- Numbers
- Booleans
if / elsewhileloops- Functions
- Return values
- Classes
- Automatic
__init__constructors - Object fields
- Member access
- Bound
selfmethods - Lists
- List indexing
- List index assignment
for ... inlist iteration- Builtin
print() - Builtin
len() - Runtime line/column error reporting
- Debug / token / AST CLI modes
nearoh examples/hello.nr
nearoh --tokens examples/hello.nr
nearoh --ast examples/hello.nr
nearoh --debug examples/hello.nr- Run → executes program normally
- --tokens → prints lexer output
- --ast → prints parsed AST
- --debug → prints source, tokens, AST, diagnostics, then execution
The repository includes runnable examples:
examples/hello.nrexamples/variables.nrexamples/functions.nrexamples/classes.nrexamples/lists.nrexamples/loops.nrexamples/objects_and_lists.nrexamples/arena_showcase.nr
class Vector2():
def __init__(self, x, y):
self.x = x
self.y = y
points = [Vector2(1, 2), Vector2(3, 4)]
for p in points:
print(p.x)
print(p.y)
items = [10, 20, 30]
items[1] = 99
print(items[1])
print(len(items))
print(len("Nearoh"))Expected Output:
1
2
3
4
99
3
6
arena_showcase.nr is a larger demonstration proving Nearoh can coordinate multiple systems together.
It uses:
- Classes
- Lists of objects
- Constructors
- Object state mutation
- Functions
- Conditional logic
- While loops
- For loops
- Runtime score tracking
- Multi-round battle simulation logic
This moves Nearoh beyond syntax demos into real executable projects.
Latest cleanup / stabilization pass included:
- Cleaner
main.cCLI architecture - Improved parser structure and error handling
- AST cleanup and memory handling fixes
- Value / list system cleanup
- Environment system cleanup
- Better runtime diagnostics with source locations
- Safer project-wide organization
Nearoh now has a much stronger foundation for future growth.
Many hobby language projects stop at parsing expressions.
Nearoh already includes real runtime behavior:
- Executable programs
- User-defined functions
- Object-oriented systems
- Dynamic lists
- Scope handling
- Builtins
- Structured examples
- Command-line tooling
- Debugging modes
- Runtime diagnostics
That means the project is moving into genuine language engineering territory.
- Dictionaries / maps
- More runtime safety checks
- Cleaner diagnostics and error UX
- Standard library utilities
- File I/O
- Modules / imports
- Expanded builtins
- Better performance paths
- Improved memory systems
- Tooling improvements
- Native graphics / window bridge
- Input / timing systems
- Bytecode VM or compiled backend research
- Dedicated Nearoh editor / IDE
- Potential self-hosted growth path
Nearoh is being built carefully and intentionally.
The goal is not to copy Python line-for-line.
The goal is to preserve what makes Python productive while gaining deeper ownership of the machine underneath it.
Readable high-level development on top. Low-level power underneath.
Built by Reece Gilbert.
This project reflects years of programming curiosity, systems experimentation, graphics work, simulation building, and the drive to create something real from scratch.
Nearoh is early, active, and growing quickly.
Every milestone is focused on turning it into a real usable language rather than a superficial prototype.