Tag

Parser

1 views collected around this technical thread.

IT Services Circle
IT Services Circle
Jan 19, 2025 · Backend Development

Analysis of PHP Hexadecimal Addition Bug Caused by Lexer Change from Flex to re2c

An in‑depth examination of a long‑standing PHP bug where the expression 0x00+2 incorrectly evaluates to 4, tracing its origin to the switch from flex to re2c in the lexer of PHP 5.3, detailing affected versions, code behavior, and the eventual fix in PHP 5.3.11.

LexerPHPParser
0 likes · 8 min read
Analysis of PHP Hexadecimal Addition Bug Caused by Lexer Change from Flex to re2c
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
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.

BNFInterpreterLexer
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.

JSXParserReact
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
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.

ASTBabelCompiler
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.

ASTDSLGoYACC
0 likes · 16 min read
Building a Simple Rule Engine with Go's AST and Parser
Python Programming Learning Circle
Python Programming Learning Circle
Nov 26, 2021 · Fundamentals

Building an Arithmetic Interpreter in Python Using PLY

This article explains how to create a simple arithmetic expression interpreter in Python by leveraging the PLY (Python Lex‑Yacc) library, covering token definition, lexer implementation, BNF grammar, parser rules, operator precedence, error handling, and a complete runnable example.

BNFInterpreterLexer
0 likes · 9 min read
Building an Arithmetic Interpreter in Python Using PLY
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.

ANTLRCompilerDSL
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 InternalsHypergraphMySQL
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.

MySQLParserPerformance Schema
0 likes · 17 min read
MySQL 8.0 Resource Groups: Overview and Implementation
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.

ASTGrammarLexer
0 likes · 11 min read
Understanding SQL Parser and Its Implementation in Apache ShardingSphere
Aikesheng Open Source Community
Aikesheng Open Source Community
Apr 28, 2020 · Databases

Understanding SQL Parsing: Lexical Analysis, Syntax Analysis, and Practical Example

This article explains the fundamentals of SQL parsing, describing the roles of lexical analysis, syntax analysis, and visitors, and demonstrates the process with a concrete SELECT statement example, while also mentioning popular parsing libraries such as Druid and ANTLR.

ANTLRDruidLexer
0 likes · 4 min read
Understanding SQL Parsing: Lexical Analysis, Syntax Analysis, and Practical Example
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.

Data StructuresJSONParser
0 likes · 14 min read
Implementing a JSON Parser in Java: Structures, Tokenization, and Parsing