Home / Companies / PubNub / Blog / Post Details
Content Deep Dive

Create a New Language in Less Than 200 Lines of Code

Blog post from PubNub

Post Details
Company
Date Published
Author
Michael Carroll
Word Count
411
Language
English
Hacker News Points
-
Summary

Creating a programming language, traditionally a complex task requiring specialized knowledge, is made accessible through Ohm, a compact parser toolkit from HARC that simplifies the process using JavaScript. This four-part series guides readers in designing a complete language named Meow with less than 200 lines of code, covering topics like parsing numbers, arithmetic with abstract syntax trees, boolean expressions, conditionals, loops, comments, and function calls. The series is designed for those with basic JavaScript knowledge, offering a step-by-step approach to teach each concept necessary for building a language without requiring prior experience with parsers.