mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 08:38:14 +01:00
Parse "struct foo(x u32)".
Also remove an obsolete TODO comment.
This commit is contained in:
1 parent
94cb8b25cb
commit
65d6608434
4 files changed
+45
-7
No files matched your search
+8
-1
@@ -106,8 +106,14 @@ const (
|
||||
// - FlagsSuspendible is "ID1" vs "ID1?"
|
||||
KFunc
|
||||
|
||||
// KStruct is "struct ID1(List0)":
|
||||
// - ID1: name
|
||||
// - List0: <KParam> fields
|
||||
// - FlagsSuspendible is "ID1" vs "ID1?"
|
||||
KStruct
|
||||
|
||||
// KFile is a file of source code:
|
||||
// - List0: <KFunc> top-level declarations
|
||||
// - List0: <KFunc|KStruct> top-level declarations
|
||||
KFile
|
||||
)
|
||||
|
||||
@@ -131,6 +137,7 @@ var kindStrings = [...]string{
|
||||
KInvalid: "KInvalid",
|
||||
KParam: "KParam",
|
||||
KReturn: "KReturn",
|
||||
KStruct: "KStruct",
|
||||
KType: "KType",
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user