We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 295271e commit 9780216Copy full SHA for 9780216
1 file changed
spicy.go
@@ -18,6 +18,12 @@ type StackValue struct {
18
AddedValues []*Value `{"+" @@}`
19
}
20
21
+type Flag struct {
22
+ Boot bool `@"BOOT" |`
23
+ Object bool `@"OBJECT" |`
24
+ Raw bool `@"RAW"`
25
+}
26
+
27
type SegmentStatement struct {
28
/*
29
:name <segmentName>
@@ -39,7 +45,7 @@ type SegmentStatement struct {
39
45
Include string `"include" @String |`
40
46
MaxSize string `"maxsize" @String |`
41
47
Align string `"align" @String |`
42
- Flags []*string `"flags" { "BOOT" | "OBJECT" | "RAW" } |`
48
+ Flags []*Flag `"flags" { @@ } |`
43
49
Number int `"number" @Int|`
44
50
Entry string `"entry" @Ident |`
51
Stack StackValue `"stack" @@`
0 commit comments