Crate gen_parser

Source
Expand description

§Convert Gen DSL to AST

§How to convert

                                                   Real AST
-----------       ---------------   Strategy   ---------------
| Gen DSL |  -->  | ParseTarget |  ----------> | ParseResult |
-----------       ---------------              ---------------  

§Gen

  • Template
  • Script
  • Style

§Template

  1. Unrestricted tags (tag name is not constrained)
  2. There are no styles, only properties, or in other words, all styles are properties
  3. Nesting strings in tags is not allowed (example: this is a view ❌)

§Script

  1. Allow Rust syntax

§Style

  1. bind to tag by name
  2. nesting allowed
  3. function and bind allowed

Modules§

comment
common
target

Macros§

as_value
parse_base_value

Structs§

Enum
Enum Value
For
For loop bind
Function
Function Value
Ident
ParseCore
ParseResult
Parse Result for GenUI DSL
ParseTarget
Parse Target
PropsKey
Property Key
Struct
Struct Value
Style
Style for ASTNodes
Tag
Tag

Enums§

ASTNodes
Bind
Bind Value
BuiltinProps
CloseType
CloseType for Tag
EnumItem
ForItem
For Loop Item
IdentSplit
PropertyKeyType
Property Key Type
Script
Script
Strategy
Parse Strategy Convert ParseTarget To AST
StyleType
Targets
Value
GenUI Value Type

Constants§

BUILTIN_PROPS
Builtin props

Functions§

props_to_string
props_to_style_string
props_to_template_string

Type Aliases§

Props