Create a New Language in Less Than 200 Lines of Code

0 MIN READ • Sep 26, 2016

Have you ever wanted to design your own programming language? It seems like such fun, but if you’ve ever tried you probably got stuck right around the time you read “LLR Decent Parsers and Abstract Syntax Trees.” Traditionally designing your own language was hard because it requires a very specialized set of arcane tools, tools that take a long time to learn and use effectively. But it doesn’t have to be this way. Ohm, a new compact parser toolkit from the team at HARC, lets you build your own languages with simple and clean Javascript.

In this four part series, I’ll show you how to build a complete programming language from scratch in less than 200 lines of code.

  1. Parsing Numbers in Decimal, Floating Point, and Hex
  2. Arithmetic with an AST and Symbols
  3. Boolean Expressions, Code Blocks and Conditionals
  4. Completing the Language with Loops, Comments, and Function Calls

This series doesn’t just give you some code. We’ll go through each concept step-by-step. We will design and build each feature for a simple language I'm calling Meow, teaching you what you need to know as we go. You don’t even need to know anything about parsers to get started, just some basic knowledge of JavaScript.

So what are you waiting for? Let’s go!

Apr 11, 2017

Build a Web Framework In Less Than 20 Lines Of Code | PubNub

A walkthrough on building a quick and easy modern web framework in 20 lines of code.
Michael Carroll
Michael Carroll
Real-Time
Oct 25, 2026

PubNub DataSync vs. real-time databases: Where your app's live state belongs

When to keep live app state in PubNub DataSync, when you still need a real-time database, and how a marathon app splits its data between them.
Dawid Urbas
Dawid Urbas
AI
Oct 7, 2026

Why MCP Alone Isn’t Enough for AI-Assisted Real-Time Development

Discover why Model Context Protocol (MCP) alone isn't enough for building production-ready real-time apps, and how combining MCP with engineering guidance (PubNub Skills) ensures robust architecture.
Ginni Kakkar
Ginni Kakkar