Nitesh Singh codecrafters.hashnode.dev·Dec 15, 2024Chicken-and-egg problemEven compilers need to run on a machine. To run the compiler itself, its code must also be compiled or interpreted. This creates a chicken-and-egg problem: How does the very first compiler run? What is a Compiler? A compiler translates source code w...Write you own Interpreters.compiler
Pranav Bawgikarpranavbawg.hashnode.dev·Dec 15, 2024Peephole Optimization in Compiler Design[21] It is a simple and effective technique for locally improving target code. It is performed on the very small set of instructions in a segment of code. The small set of instructions or small part of code on which peephole optimization is performed...peeophole-optimization
OM SHINTREforCompilers for Parallel Machinesintroduction-to-parallel-machines.hashnode.dev·Nov 28, 2024Compilers for Parallel Machines: A Beginner's GuideIntroduction to Parallel Machines: In today’s digital era, parallel computing has revolutionized the way machines process data. By dividing tasks into smaller subtasks that run simultaneously, parallel computing contrasts with the step-by-step approa...40 likesparallel machines
Abou Zuhayrblog.zuhayr.dev·Oct 9, 2024Writing an Interpreter from ScratchInterpreters are the backbone of many programming languages, converting code into actions line by line. In this article, we'll build a simple interpreter from scratch using Python. If you are new to this series, you can find the previous articles her...4 likesWhat, How and Why?Interpreters
Abou Zuhayrblog.zuhayr.dev·Oct 8, 2024Building a Parser: A Beginner-Friendly Guide to Constructing an AST-Based ParserIn our previous article, we built a lexer that converts code into tokens, breaking down the input into meaningful pieces. Now, the next exciting step is to write a parser, which takes these tokens and organizes them into a meaningful structure called...46 readsWhat, How and Why?parser
Abou Zuhayrblog.zuhayr.dev·Oct 3, 2024Understanding How Parsers Work : Writing My Own Programming LanguageSo, you’ve built a lexer that can break down source code into meaningful tokens—things like keywords, operators, and symbols. But what's next? While lexing breaks the input into smaller parts, it doesn’t tell us how these parts fit together. That’s w...What, How and Why?parser
Sawez Faisalsawezfaisal.hashnode.dev·Oct 3, 2024Chapter 5: Grammar of the languageUnderstanding Grammars in Programming Languages What is a Grammar? In the world of programming languages, a grammar is a set of rules that defines the structure of valid statements within the language. It's the backbone of how we write and interpret ...The Sodum Project: Unraveling Programming Language Design and Implementationprogramming languages
Sawez Faisalsawezfaisal.hashnode.dev·Sep 30, 2024Chapter 4: Tokens??Tokens are the smallest meaningful part of the source code ( the high level language). So if your language contains if keyword it should have a token “IF” that would allow the compiler to identify the stream of characters in a source code and then se...The Sodum Project: Unraveling Programming Language Design and ImplementationProgramming Blogs
Jyotiprakash Mishrablog.jyotiprakash.org·Sep 23, 2024Having Fun with ParsersImagine you're speaking a language only your computer can understand, and it's hanging on to every word you say, trying to figure out exactly what you mean. This is essentially what a parser does—it reads your code (or any structured input) and tries...10 likescontext-free grammar
Sawez Faisalsawezfaisal.hashnode.dev·Sep 23, 2024Chapter 2:: Setting up the project structureIntroduction Have a look at the topics mentioned here on your own as it cannot be discussed in detail due to the size constraints. In this chapter, we'll dive into organizing our Sodum language project. A well-structured project is crucial for mainta...The Sodum Project: Unraveling Programming Language Design and Implementationprogramming languages