mkdir build
cd build
cmake .. -G "Ninja" -DQUICK_FTXUI_TESTS=ON
ninja
./quick-ftxui
Upload your game to github and visit https://snapcraft.io/build.
It can parse the following code
{
Button{
"arg1",
"arg2"
}
}
Button
,Exit
are identifiersButton
is acomponent
type|
is adecorator
operatorBlue
is a decorator- The operation
plain | decorator
returnsnice
type render
is like a main function, just render the component
Grammar
nice -> plain | (nice >> decorator_op >> decorator)
my_component = Button("Nothing",Exit) | Blue
render my_component