Klang - A modern language that fixes Python's weaknesses while keeping syntax intuitive and fun. Made from scratch! banner

Klang - A modern language that fixes Python's weaknesses while keeping syntax intuitive and fun. Made from scratch!

1 devlog
11h 14m 26s

Klang is a hybrid, dynamic, interpreted language designed to fix Python's weaknesses.

A language built fully by me, Klang features a full Lexical Analysis pipeline that transforms raw source into discrete tokens, which are then processed by a r…

Klang is a hybrid, dynamic, interpreted language designed to fix Python’s weaknesses.

A language built fully by me, Klang features a full Lexical Analysis pipeline that transforms raw source into discrete tokens, which are then processed by a recursive descent parser to generate a complex abstract syntax tree. The final execution is handled by a custom visitor pattern interpreter, managing state through a dynamic symbol table and context-aware scoping.

READ EVERY FEATURE OF IT ON THE GITHUB’S README!
https://github.com/Snibesto20/Klang-programming-language/blob/main/readme.md

This project uses AI

AI helped me write some code snippets purely for learning purposes, they are not blindly copied, were rewritten by me so i learn from this project!

Demo Repository

Loading README...

Snibesto

Stage 1: Coding the lexer - Scans raw program to turn text into a clean list of categorized tokens.

Stage 2: Coding the parser - Arranges those tokens into an abstract syntax tree to make sure the code follows proper grammatical rules (the tokens are in correct order).

Stage 3: Coding the Interpreter - Walks through the tree and executes the logic by performing math and managing variable memory.

Stage 4: Implementing data structures - Added support for Arrays and Stacks so the language could store and manipulate lists of information.

Stage 5: Creating syntax sugar - Implemented quality of life features like string interpolation and shortcut operators to make the code look professional.

Stage 6: Making exemplary programs - Wrote actual programs like calculators and temperature conversion programs in Klang to prove the engine was stable and fast.

0