Last active
April 26, 2022 18:29
-
-
Save Conaclos/00fb1bcc2096892ab78f721a4b634d8d to your computer and use it in GitHub Desktop.
Revisions
-
Conaclos revised this gist
Apr 26, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,7 @@ type Element union { | False | True | Null | f64 | str | Object | Array -
Conaclos revised this gist
Apr 26, 2022 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,6 +11,8 @@ type Element union { | False | True | Null | uint | str | Object | Array } -
Conaclos created this gist
Apr 26, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,59 @@ type TypeId uint type BoolType void type I8Type void type I16Type void type I32Type void type I64Type void type IntType void type StrType void type U8Type void type U16Type void type U32Type void type U64Type void type UintType void type EnumMember struct { name: str tag: uint } type EnumType list<EnumMember> type ListType struct { valType: TypeId # 0 for variable-length length: uint } type MapType struct { keyType: TypeId valType: TypeId } type StructField struct { name: str type: TypeId } type TypeAlias str type UnionMember struct { type: TypeId tag: uint } type UnionType list<UnionMember> type Type union { | BoolType | I8Type | I16Type | I32Type | I64Type | IntType | StrType | U8Type | U16Type | U32Type | U64Type | UintType | EnumType | ListType | MapType | TypeAlias | StructType | UnionType } type Schema list<Type> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ type ElementId uint type False void type True void type Null void type Object map<str><ElementId> type Array list<ElementId> type Element union { | False | True | Null | Object | Array } type Document list<Element>