Tagged articles
15 articles
Page 1 of 1
JD Tech Talk
JD Tech Talk
Jan 3, 2025 · Fundamentals

Understanding Compiler Front‑End: Lexical, Syntax, and Semantic Analysis with Antlr

This article introduces the fundamentals of compiler front‑end development, covering lexical analysis with finite automata, syntax analysis using context‑free grammars and parsing strategies, and semantic analysis concepts, while providing practical Antlr examples for Java code tokenization, parsing, and semantic checks.

ANTLRSyntax Analysiscompiler
0 likes · 11 min read
Understanding Compiler Front‑End: Lexical, Syntax, and Semantic Analysis with Antlr
Goodme Frontend Team
Goodme Frontend Team
Sep 9, 2024 · Fundamentals

How JavaScript Parsers Turn Code into ASTs: Lexical & Syntax Basics

This article explains how JavaScript parsers transform source code strings into abstract syntax trees through lexical analysis and syntax parsing, covering language types, V8’s execution flow, token generation, AST construction, and practical examples, while also linking to tools like AST Explorer for further exploration.

ASTParserSyntax Parsing
0 likes · 10 min read
How JavaScript Parsers Turn Code into ASTs: Lexical & Syntax Basics
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jun 2, 2022 · Fundamentals

Design and Implementation of TinyLanguage Using Flex and Bison

The article walks readers through designing and implementing TinyLanguage—a minimal interpreted language with 4‑byte integers, constants, if/else, for loops, and print—by using Flex for lexical analysis, Bison for parsing into an AST, and an execution engine, even showing a Fibonacci example and future LLVM compilation possibilities.

ASTBisonFlex
0 likes · 30 min read
Design and Implementation of TinyLanguage Using Flex and Bison
MaGe Linux Operations
MaGe Linux Operations
Jan 3, 2022 · Backend Development

Build a Simple Arithmetic Interpreter in Python Using PLY

This article walks through creating a Python arithmetic interpreter with the PLY library, covering token definitions, lexer rules, BNF grammar, parser implementation, operator precedence, and a runnable REPL, providing complete code and explanations for each step.

BNFPLYPython
0 likes · 9 min read
Build a Simple Arithmetic Interpreter in Python Using PLY
Programmer DD
Programmer DD
Nov 2, 2021 · Fundamentals

How to Build a Simple JSON Parser in Java: A Step‑by‑Step Guide

This article walks through the design and implementation of a lightweight JSON parser in Java, covering the underlying lexical and syntax analysis, token definitions, core parsing algorithms, testing strategies, and a brief demonstration of JSON beautification, providing developers with a clear understanding of JSON processing fundamentals.

JSONJavaParser
0 likes · 18 min read
How to Build a Simple JSON Parser in Java: A Step‑by‑Step Guide
Sohu Tech Products
Sohu Tech Products
Apr 8, 2020 · Fundamentals

Building an IntelliJ Plugin to Convert MySQL DDL into Python ORM Models Using Lexical Analysis

This article explains how to create a JetBrains IntelliJ plugin that parses MySQL DDL statements, performs lexical analysis to extract table and column information, and automatically generates corresponding Python ORM model classes, illustrating the underlying state‑machine lexer, recursive parsing logic, and sample code.

Code GenerationDDLIntelliJ Plugin
0 likes · 9 min read
Building an IntelliJ Plugin to Convert MySQL DDL into Python ORM Models Using Lexical Analysis
360 Tech Engineering
360 Tech Engineering
Jun 25, 2019 · Fundamentals

Building an LL(1) SQL Parser in Go

This tutorial explains how to implement a simple LL(1) parser in Go for SQL queries, covering lexical analysis, syntax analysis, finite‑state‑machine strategy, and testing, providing complete code snippets and practical guidance for developers interested in parser construction.

GoLL(1) parserSQL parsing
0 likes · 9 min read
Building an LL(1) SQL Parser in Go
MaGe Linux Operations
MaGe Linux Operations
Dec 24, 2018 · Fundamentals

How Programming Languages Really Work: Inside the Compiler Journey

This article demystifies how programming languages are transformed by compilers, covering the roles of lexical analysis, parsing, abstract syntax trees, code generation, and linking, with practical Rust examples, diagrams, and references to deepen your understanding of language implementation.

Code GenerationProgramming LanguageRust
0 likes · 14 min read
How Programming Languages Really Work: Inside the Compiler Journey
ITPUB
ITPUB
Jul 7, 2018 · Databases

Unlocking MySQL: How SQL Parsing Works and Boosts DBA Efficiency

This article explains why protecting database systems is critical, reviews existing SQL‑analysis tools, and dives deep into MySQL's lexical and syntax parsing techniques—including Bison‑generated parsers, core data structures, and practical applications such as useless‑condition removal and SQL feature generation—to help DBAs automate and optimize their workflows.

BisonDBA toolsSQL parsing
0 likes · 15 min read
Unlocking MySQL: How SQL Parsing Works and Boosts DBA Efficiency