awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
google avatar

google/gumbo-parserArchived

0
View on GitHub↗
5,190 星标·664 分支·HTML·Apache-2.0·4 次浏览

Gumbo Parser

Gumbo-parser 是一个用纯 C99 编写的高性能 HTML5 解析库。它通过实现 HTML5 规范中定义的正式状态机词法分析和错误恢复规则,将原始标记转换为结构化的文档树。

该项目作为一个 HTML 源码映射工具,将解析后的节点链接回输入缓冲区中的原始字节偏移量和指针。这允许在生成的解析树中精确追踪元素的源码位置。

除了完整的文档处理外,该库还处理孤立的 HTML 片段,并提供基于 C 的外部函数接口,以实现与其他环境的集成和语言绑定。

Features

  • HTML5 Parsers - Provides a high-performance parser that strictly adheres to the HTML5 specification for transforming markup into structured trees.
  • Token Offset Mapping - Maps structural nodes to their exact byte offsets within the input buffer to avoid data duplication.
  • Source Text Mapping - Maps elements in the resulting parse tree back to their exact character offsets in the source text.
  • AST-to-Source Mappings - Links parsed nodes in the resulting tree back to their original source code offsets.
  • DOM-to-Source Mappings - Links structural DOM nodes back to their originating source positions using byte offsets and pointers.
  • C99 HTML Parsing - Implements high-performance HTML processing in pure C99 for lightweight and fast integration.
  • Markup State Machines - Employs a deterministic state machine to transform raw character streams into discrete HTML5 tokens.
  • Spec-Driven Recovery - Uses official HTML5 specification rules to recover from malformed markup and ensure a consistent document tree.
  • HTML Parsers - Provides a C99-based engine that converts raw HTML strings into structured trees for programmatic analysis.
  • Source Location Mapping - Maps parsed HTML elements back to their original source locations to track content existence within a file.
  • Parsing Pipelines - Separates the initial tokenization process from the tree construction phase to correctly handle nested elements.
  • In-Memory Tree Hierarchies - Implements the parsed document as a hierarchy of linked nodes using C99 pointers for efficient traversal.
  • HTML Content Processing - Parses isolated HTML snippets into structured data representations without needing a full document.
  • DOM Fragment Parsing - Processes isolated snippets of HTML markup into structured fragments without requiring a full document.
  • 构建系统 - A library for parsing HTML5 documents.
  • 网络库 - HTML5 parsing library for C99.
  • Windows Environments - Listed in the “Windows Environments” section of the Awesome C awesome list.

Star 历史

google/gumbo-parser 的 Star 历史图表google/gumbo-parser 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Gumbo Parser 的开源替代方案

相似的开源项目,按与 Gumbo Parser 的功能重合度排序。
  • anglesharp/anglesharpAngleSharp 的头像

    AngleSharp/AngleSharp

    5,499在 GitHub 上查看↗

    AngleSharp is an HTML5 DOM parser and web scraping framework designed to parse HTML5, SVG, and MathML documents into a W3C compliant document object model. It functions as a programmatic HTML generator and a CSS selector engine for querying and locating specific elements within a DOM. The project provides tools for simulating browser environments to automate web interactions, navigate URLs, and submit forms. It includes a dedicated HTML and CSS minifier to reduce the file size of web assets by removing unnecessary characters. The library supports HTML DOM manipulation and the extraction of s

    C#angle-bracketanglesharpc-sharp
    在 GitHub 上查看↗5,499
  • nanomsg/nanomsgnanomsg 的头像

    nanomsg/nanomsg

    6,277在 GitHub 上查看↗

    nanomsg is a distributed messaging middleware and scalable messaging library designed for moving data between machines and processes. It functions as a socket-based communication framework that routes data across different network transport layers. The library implements scalable messaging patterns, specifically request-reply and publish-subscribe, to handle high volumes of data across distributed systems. It provides tools for network performance benchmarking to quantify messaging throughput and latency. The framework supports distributed message routing and inter-process communication usin

    C
    在 GitHub 上查看↗6,277
  • awslabs/s2nawslabs 的头像

    awslabs/s2n

    4,736在 GitHub 上查看↗

    s2n is a C-based security library and TLS protocol implementation that serves as a secure network transport layer. It provides a modular cryptographic backend interface to encrypt data streams, manage handshakes, and handle mutual authentication between peers. The project focuses on post-quantum cryptography, integrating quantum-resistant key exchange and digital signatures to protect connections against future computing threats. It distinguishes itself through security hardening measures, such as memory-locked secret storage to prevent keys from being swapped to disk and timing-attack mitiga

    C
    在 GitHub 上查看↗4,736
  • silentbicycle/socket99silentbicycle 的头像

    silentbicycle/socket99

    145在 GitHub 上查看↗

    Wrapper library for the BSD sockets API with a nicer C99 interface

    C
    在 GitHub 上查看↗145
查看 Gumbo Parser 的所有 30 个替代方案→

常见问题解答

google/gumbo-parser 是做什么的?

Gumbo-parser 是一个用纯 C99 编写的高性能 HTML5 解析库。它通过实现 HTML5 规范中定义的正式状态机词法分析和错误恢复规则,将原始标记转换为结构化的文档树。

google/gumbo-parser 的主要功能有哪些?

google/gumbo-parser 的主要功能包括:HTML5 Parsers, Token Offset Mapping, Source Text Mapping, AST-to-Source Mappings, DOM-to-Source Mappings, C99 HTML Parsing, Markup State Machines, Spec-Driven Recovery。

google/gumbo-parser 有哪些开源替代品?

google/gumbo-parser 的开源替代品包括: anglesharp/anglesharp — AngleSharp is an HTML5 DOM parser and web scraping framework designed to parse HTML5, SVG, and MathML documents into a… silentbicycle/socket99 — Wrapper library for the BSD sockets API with a nicer C99 interface. awslabs/s2n — s2n is a C-based security library and TLS protocol implementation that serves as a secure network transport layer. It… sinemetu1/twitc. nanomsg/nanomsg — nanomsg is a distributed messaging middleware and scalable messaging library designed for moving data between machines… lunet-io/markdig — Markdig is a high-performance Markdown processor for .NET applications that converts Markdown text into HTML or other…