Skip to content

Instantly share code, notes, and snippets.

#include "lexer/lexer.hpp"
const std::string keywords[] = {"if", "else", "while", "for", "ret", "break", "continue", "true", "false", "null", "def", "interface", "extern"};
char Lexer::peek() const
{
return source[index];
}

🌱 Stak (WIP)

This is an statically typed programming language focused on simplicity, safety, and performance. It uses immutable-by-default semantics, pass-by-value for primitives, and a reference-based memory model with automatic reference counting (refcount).

The syntax is inspired by modern languages but does not attempt to replicate any existing one. It is a pragmatic language designed to empower developers without exposing them to low-level memory concerns.

✨ Core Principles

  • Immutable by default: Variables and function parameters are immutable unless explicitly marked as mut.