Sawez Faisalsawezfaisal.hashnode.dev·Oct 20, 2024Understanding Parsers - Part 1 : TheoryMy introduction to parsers So, when the Lexer of Sodum got completed i was able to generate a stream of tokens from the incoming raw source code . Now WHAT!!! , what should i do with these tokens , How do i make sense out of it , How will the machine...The Sodum Project: Unraveling Programming Language Design and Implementationparser
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
Sawez Faisalsawezfaisal.hashnode.dev·Sep 26, 2024Chapter 3: Setting Up the Build System and Code FormattingIntroduction As we dive deeper into the Sodum project, it's crucial to set up a proper build system and code formatting tools. These might seem like extra steps now, but trust me, they'll save us a lot of headaches down the road! Build Systems: Why B...The Sodum Project: Unraveling Programming Language Design and ImplementationProgramming Blogs
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
Sawez Faisalsawezfaisal.hashnode.dev·Sep 21, 2024Chapter 1: Project Architecture and WorkflowCreating a programming language involves several key stages: High-level code authoring Compilation to intermediate representation (IR) Assembly into machine code File loading Linking of external dependencies Final object file generation Our ...The Sodum Project: Unraveling Programming Language Design and ImplementationProgramming Blogs
Sawez Faisalsawezfaisal.hashnode.dev·Sep 21, 2024Chapter 0: Overview and ObjectivesWelcome to my blog series on developing Sodum, a simple programming language. This project aims to explore the inner workings of language implementation, focusing on the journey from high-level code to assembly for various target architectures. Sodum...The Sodum Project: Unraveling Programming Language Design and Implementationwriting language from scratch