mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-06 16:19:07 -04:00
implement variant parsing
This commit is contained in:
parent
bc10ccee0c
commit
be667a2b9c
4 changed files with 139 additions and 16 deletions
|
@ -1,16 +1,16 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
menu root {
|
||||
submenu {
|
||||
name: "one";
|
||||
item {
|
||||
action: "app.foo_bar";
|
||||
target: variant<"s">("\"one\"");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Button {
|
||||
action-name: "app.shave_yak";
|
||||
action-target: variant<"y">("8");
|
||||
$BlueprintTestObject {
|
||||
// test-one: variant<"s">("one");
|
||||
test-zero: variant<"b">(true);
|
||||
test-one: variant<"s">("one");
|
||||
test-two: variant<"i">(2);
|
||||
test-three: variant<"(ii)">((3, 4));
|
||||
test-four: variant<"ai">([5, 6]);
|
||||
test-five: variant<"{sv}">({"key", <"value">});
|
||||
test-six: variant<"a{ss}">({
|
||||
"GLib": "2.24",
|
||||
"Gtk": "4.16"
|
||||
});
|
||||
test-seven: variant<"ams">([just "2", nothing]);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue