Jetpack Compose Rust Parse
- Rust parser created to parse the Jetpack Compose syntax tree
- It is important that the function starts with @Composable and has any name
- The main components will be
- Row / Column -> elements that have
- Text -> an element that has a text field parameter 'text'
- Image -> an element that has a text field 'image' as a parameter with .png extension
Example
@Composable
fun Example() {
Row {
Text(text = "Hello")
Column {
Text(text = "World")
Image(image = "image.png")
}
}
}
Author