Tagged articles
37 articles
Page 1 of 1
21CTO
21CTO
Jun 21, 2025 · Fundamentals

How to Build a Toy BASIC‑to‑Go Compiler in a Weekend

An experienced programmer shares a weekend project that builds a simplified BASIC variant, toybasic, and a three‑stage compiler written in Go—using Nex for lexical analysis, goyacc for parsing, and custom code generation—to translate BASIC programs into Go code, complete with examples and source links.

BASICParsercompiler
0 likes · 9 min read
How to Build a Toy BASIC‑to‑Go Compiler in a Weekend
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
Efficient Ops
Efficient Ops
Jun 3, 2024 · Databases

How Does MySQL Execute a Query? Inside the Server Architecture

This article walks through how MySQL processes a SELECT query, detailing the server and storage engine layers, the roles of the connector, query cache, parser, optimizer, and executor, and provides practical command‑line examples to illustrate each step.

ConnectorDatabase ArchitectureExecutor
0 likes · 11 min read
How Does MySQL Execute a Query? Inside the Server Architecture
Open Source Tech Hub
Open Source Tech Hub
Jan 28, 2024 · Backend Development

What’s New in PHP‑Parser 5.0.0? A Deep Dive into Features and Usage

PHP‑Parser 5.0.0 introduces a host of new classes, methods, and parser improvements—including a PhpVersion class, PHP 8 support, enhanced pretty‑printing, and updated node handling—while also deprecating older APIs; the article provides a detailed changelog and a concise usage example for parsing PHP code.

ASTCode ParsingPHP
0 likes · 9 min read
What’s New in PHP‑Parser 5.0.0? A Deep Dive into Features and Usage
Python Programming Learning Circle
Python Programming Learning Circle
Nov 29, 2023 · Fundamentals

Building a Simple Python Interpreter with PLY

This article guides readers through designing and implementing a basic Python interpreter that can evaluate arithmetic expressions by defining tokens, writing a lexer and parser with PLY, specifying BNF grammar, handling precedence, and assembling a runnable program that processes user input.

BNFPLYParser
0 likes · 9 min read
Building a Simple Python Interpreter with PLY
Sohu Tech Products
Sohu Tech Products
Aug 2, 2023 · Frontend Development

How JSX Works and Building a Simple JSX Parser from Scratch

This article explains the fundamentals of JSX, why JSX expressions must have a single root element, and provides a step‑by‑step guide with complete code to implement a minimal JSX parser that translates JSX syntax into plain JavaScript createElement calls.

Code GenerationJSXJavaScript
0 likes · 13 min read
How JSX Works and Building a Simple JSX Parser from Scratch
Code Ape Tech Column
Code Ape Tech Column
Jun 30, 2023 · Backend Development

Applying the Service Locator Pattern to Decouple File Parsers in Spring

This article demonstrates how to replace tightly‑coupled if‑else or switch‑case parser selection with the Service Locator Pattern in a Spring Java application, enabling easy addition of new file‑type parsers without modifying client code and adhering to the open‑closed principle.

DecouplingJavaParser
0 likes · 8 min read
Applying the Service Locator Pattern to Decouple File Parsers in Spring
政采云技术
政采云技术
Dec 6, 2022 · Fundamentals

How to Use Antlr4 for Custom SQL Parsing in Spark Projects

This guide explains common business scenarios that require custom SQL parsing, walks through setting up Antlr4 in IntelliJ IDEA, configuring Maven dependencies, generating parser code, and provides Java examples for extracting table names from Spark SQL statements, including handling of prediction modes and execution results.

Antlr4BackendJava
0 likes · 11 min read
How to Use Antlr4 for Custom SQL Parsing in Spark Projects
ELab Team
ELab Team
Jun 17, 2022 · Fundamentals

How a Tiny Compiler Works: From Tokenizer to Code Generator

This article walks through the core concepts and implementation steps of a minimal JavaScript compiler, covering tokenization, parsing into an AST, traversing with a visitor, transforming the tree, and generating target code, while also explaining the visitor pattern and polyfills.

ASTJavaScriptParser
0 likes · 17 min read
How a Tiny Compiler Works: From Tokenizer to Code Generator
IT Services Circle
IT Services Circle
May 5, 2022 · Fundamentals

Implementing a Super Tiny Compiler: Parsing, Transforming, and Code Generation

This article walks through creating a minimal JavaScript compiler—starting from tokenizing Lisp‑style input, building an abstract syntax tree, traversing and transforming it, and finally generating equivalent C‑style code, illustrating the core parse‑transform‑generate workflow used by tools like Babel.

ASTCode GenerationJavaScript
0 likes · 13 min read
Implementing a Super Tiny Compiler: Parsing, Transforming, and Code Generation
IEG Growth Platform Technology Team
IEG Growth Platform Technology Team
Jan 3, 2022 · Backend Development

Building a Simple Rule Engine with Go's AST and Parser

This article explains how to design a lightweight rule engine in Go by first using JSON‑defined rules, then leveraging Go's token scanner and AST parser to evaluate boolean expressions such as header and cookie checks, and finally discusses extending the engine with custom primitives and GoYACC for more complex grammars.

ASTDSLGo
0 likes · 16 min read
Building a Simple Rule Engine with Go's AST and Parser
BaiPing Technology
BaiPing Technology
Nov 8, 2021 · Frontend Development

How to Extend Markdown with Custom Syntax Using Marked.js

This article explains how to create personalized Markdown syntax using the Marked library, covering basic usage, the internal six‑step rendering process, lexical analysis with regex, and step‑by‑step implementation of custom block elements like an alcohol card and video embed.

Custom SyntaxMarkedParser
0 likes · 14 min read
How to Extend Markdown with Custom Syntax Using Marked.js
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
Yuewen Technology
Yuewen Technology
Sep 10, 2021 · Fundamentals

How to Build Your Own Expression Language with ANTLR and Java

This article walks through the complete process of designing a simple domain‑specific expression language, defining its grammar, generating a lexer and parser with ANTLR, implementing an AST visitor in Java, and integrating the engine into a Java project.

ANTLRDSLExpression Language
0 likes · 16 min read
How to Build Your Own Expression Language with ANTLR and Java
Qunar Tech Salon
Qunar Tech Salon
Aug 3, 2021 · Databases

Deep Dive into MySQL 8.0 Server Architecture, Parser, and Optimizer

This article analyzes MySQL 8.0.25 source code, detailing the server architecture, parser reconstruction, prepare/rewrite stages, the optimizer transformations, and the new hypergraph optimizer, while also comparing these mechanisms with PostgreSQL’s processing pipeline.

Database InternalsHypergraphParser
0 likes · 12 min read
Deep Dive into MySQL 8.0 Server Architecture, Parser, and Optimizer
Tencent Database Technology
Tencent Database Technology
Aug 2, 2021 · Databases

MySQL 8.0 Resource Groups: Overview and Implementation

This article introduces MySQL 8.0's resource group feature, detailing its concepts, configuration commands, query hint usage, and the underlying implementation including new parser classes, platform APIs, runtime components, performance schema integration, and persistence mechanisms, with code examples throughout.

ParserPerformance SchemaResource Group
0 likes · 17 min read
MySQL 8.0 Resource Groups: Overview and Implementation
phodal
phodal
Jun 7, 2021 · Fundamentals

How to Design Effective Domain‑Specific Languages: Patterns, Syntax, and Tools

This article presents a comprehensive guide to designing external domain‑specific languages, covering presentation modes, terminology extraction, relationship and syntax design, data‑structure definition, parser implementation with generator tools, testing strategies, and evolution techniques, illustrated with real‑world examples and code snippets.

DSLParserSoftware Engineering
0 likes · 10 min read
How to Design Effective Domain‑Specific Languages: Patterns, Syntax, and Tools
QQ Music Frontend Team
QQ Music Frontend Team
Apr 16, 2021 · Backend Development

Build a JCE Parser with PEG.js for Node.js BFF Framework

This tutorial explains how to use PEG.js to create a JavaScript parser that converts JCE protocol definitions into Node.js syntax, covering PEG.js basics, grammar rules, recursion, struct and interface parsing, and assembling a complete JCE parser.

ASTJCENode.js
0 likes · 9 min read
Build a JCE Parser with PEG.js for Node.js BFF Framework
ZhiKe AI
ZhiKe AI
Mar 11, 2021 · Backend Development

Mastering Spring Expression Language (SpEL): Syntax, Features, and Usage

This article provides a comprehensive overview of Spring Expression Language (SpEL), detailing its supported expression types, case‑insensitive keywords, step‑by‑step usage flow, core interfaces, and concrete code examples for literals, arithmetic, relational, logical, ternary, Elvis, variable handling, and property navigation.

EvaluationContextExpression LanguageJava
0 likes · 11 min read
Mastering Spring Expression Language (SpEL): Syntax, Features, and Usage
Big Data Technology & Architecture
Big Data Technology & Architecture
Feb 28, 2021 · Databases

Understanding the SQL Execution Process in ClickHouse

This article explains in detail how ClickHouse processes a user‑submitted SQL query, covering the server’s request handling, parsing, query rewrite, optimization, interpreter execution, and result transmission, while illustrating key source code snippets and architectural components.

BackendClickHouseDatabase Internals
0 likes · 18 min read
Understanding the SQL Execution Process in ClickHouse
JD Tech Talk
JD Tech Talk
Dec 16, 2020 · Databases

Understanding SQL Parser and Its Implementation in Apache ShardingSphere

This article explains the fundamentals of SQL parsing, covering lexer and parser mechanisms, context‑free grammar concepts, LL(1) and LR(1) parsing techniques, and demonstrates how Apache ShardingSphere implements a flexible, multi‑dialect SQL parser with features such as formatting, parameterization, and extensibility.

ASTParserSQL
0 likes · 11 min read
Understanding SQL Parser and Its Implementation in Apache ShardingSphere
WecTeam
WecTeam
Dec 26, 2019 · Fundamentals

How to Build a Custom JSON Parser in JavaScript from Scratch

This article walks through creating a JSON parser in JavaScript, covering the JSON grammar, railroad and BNF diagrams, step‑by‑step implementation of object, array and value parsing, robust error handling, and suggestions for meaningful error messages.

Error HandlingJSONJavaScript
0 likes · 13 min read
How to Build a Custom JSON Parser in JavaScript from Scratch
WecTeam
WecTeam
Oct 29, 2019 · Fundamentals

How to Build a Custom Arithmetic Parser with AST and Vector Extensions in JavaScript

This tutorial walks through constructing a JavaScript arithmetic parser using a finite‑state lexer, a stack‑based parser that builds an abstract syntax tree (AST), and an evaluator that supports numbers, operators, parentheses, vectors, and custom symbols like @rot and @dot, complete with visual demos.

ASTJavaScriptParser
0 likes · 23 min read
How to Build a Custom Arithmetic Parser with AST and Vector Extensions in JavaScript
Java Captain
Java Captain
Feb 17, 2019 · Backend Development

Implementing a JSON Parser in Java: Structures, Tokenization, and Parsing

This article explains the fundamentals of JSON, its object and array structures, maps JSON types to Java equivalents, and provides a complete Java implementation of a JSON parser including token definitions, lexical analysis, and object/array construction with detailed code examples.

JSONJavaParser
0 likes · 14 min read
Implementing a JSON Parser in Java: Structures, Tokenization, and Parsing
Node Underground
Node Underground
Nov 30, 2017 · Frontend Development

How JavaScript Parsers Boost Performance: Eager vs Lazy Parsing Explained

Understanding JavaScript parsers—such as Esprima, Acorn, and Babylon—reveals how they generate ASTs, validate syntax, prioritize operators, and more, while distinguishing eager from lazy parsing modes in V8, enabling developers to optimize code performance through tools like optimize-js.

ASTParserPerformance Optimization
0 likes · 4 min read
How JavaScript Parsers Boost Performance: Eager vs Lazy Parsing Explained