Expand description
§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
Modules§
Macros§
Structs§
- Enum
- Enum Value
- For
- For loop bind
- Function
- Function Value
- Ident
- Parse
Core - Parse
Result - Parse Result for GenUI DSL
- Parse
Target - Parse Target
- Props
Key - Property Key
- Struct
- Struct Value
- Style
- Style for ASTNodes
- Tag
- Tag
Enums§
- ASTNodes
- Bind
- Bind Value
- Builtin
Props - Close
Type - CloseType for Tag
- Enum
Item - ForItem
- For Loop Item
- Ident
Split - Property
KeyType - Property Key Type
- Script
- Script
- Strategy
- Parse Strategy Convert ParseTarget To AST
- Style
Type - Targets
- Value
- GenUI Value Type
Constants§
- BUILTIN_
PROPS - Builtin props