1 unstable release
new 0.1.0 | Jan 24, 2025 |
---|
#264 in Procedural macros
109 downloads per month
Used in 5 crates
(2 directly)
165KB
4K
SLoC
Parser for GenUI
See: GenUI Book
See: GenUI
lib.rs
:
Convert Gen DSL to AST
How to convert
Real AST
----------- --------------- Strategy ---------------
| Gen DSL | --> | ParseTarget | ----------> | ParseResult |
----------- --------------- ---------------
Gen
- Template
- Script
- Style
Template
- Unrestricted tags (tag name is not constrained)
- There are no styles, only properties, or in other words, all styles are properties
- Nesting strings in tags is not allowed (example: this is a view ❌)
Script
- Allow Rust syntax
Style
- bind to tag by name
- nesting allowed
- function and bind allowed
Dependencies
~4–12MB
~132K SLoC