Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

syn-rsx

> 前端框架
Open source

syn-powered parser for JSX-like TokenStreams

188 stars0 likes3 views
WebsiteGitHub

About

syn-powered parser for JSX-like TokenStreams

syn-rsx

syn-powered parser for JSX-like TokenStreams, aka RSX. The parsed result is a nested Node structure, similar to the browser DOM, where node name and value are syn expressions to support building proc macros.

…

You might want to check out the html-to-string-macro example as well.

Features

  • Not opinionated

    Every tag or attribute name is valid

    xml
  • Text nodes

    Support for unquoted text is planned.

    xml
    
    
  • Node names separated by dash, colon or double colon

    xml
    
    
  • Node names with reserved keywords

    xml
  • Doctypes, Comments and Fragments

    xml
    
    
    <>
  • Braced blocks are parsed as arbitrary Rust code

    xml
    
    
    
    
    
       | |__________________^
  • Customization

    A ParserConfig to customize parsing behavior is available, so if you have slightly different requirements for parsing and it's not yet customizable feel free to open an issue or pull request to extend the configuration.

    One highlight with regards to customization is the transform_block configuration, which takes a closure that receives raw block content as ParseStream and lets you optionally convert it to a TokenStream. That makes it possible to have custom syntax in blocks. More details in #9

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rusthtmljsxmacrosrsx

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架