DFIELDSOLUTIONS

Free software

LabRuna: A little language you can read

Lexer → Pratt parser → tree-walking interpreter with closures + recursion, zero-dep. Now with arrays, while loops, assignment, and higher-order builtins (map/filter/reduce). run(src)→{output,result,error} makes the pipeline testable; 18 tests drive real programs.

Free software1 sections · 2 min readBy Dezső Mező.mdFree softwareRuna

Runa is a small, readable programming language with a complete interpreter pipeline: a lexer, a Pratt parser, and a tree-walking interpreter supporting closures and recursion. It now handles arrays, while loops, assignment, and higher-order builtins like map, filter, and reduce, and the run(src) function returns output, result, and error so the whole pipeline is testable - 18 tests run real programs. It is a from-scratch, zero-dependency build you can download and run locally.

01About the app

Language design

What to take away

  • Lexer → Pratt parser → tree-walking interpreter with closures + recursion, zero-dep. Now with arrays, while loops, assignment, and higher-order builtins (map/filter/reduce). run(src)→{output,result,error} makes the pipeline testable; 18 tests drive real programs.
  • Download: Runa (ZIP)
We build this for clientsFull-stack

Read the full write-up

More from the lab

Browse all entries

Want this looked at on your own system?Start a conversation

5.0
“New shop, more orders in the first week.”Müller Márk · GeekCornerManaging Director · Hungary