diff options
Diffstat (limited to 'tools/Scanner/Protocol.lean')
| -rw-r--r-- | tools/Scanner/Protocol.lean | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/tools/Scanner/Protocol.lean b/tools/Scanner/Protocol.lean index 6f74126..183ef6a 100644 --- a/tools/Scanner/Protocol.lean +++ b/tools/Scanner/Protocol.lean @@ -60,15 +60,15 @@ structure EnumDesc where deriving Repr, BEq, Inhabited inductive ArgumentType where -| int -| uInt -| fixed -| string -| array -| fd -| newID -| object -deriving Repr, BEq, Inhabited + | int + | uint + | fixed + | string + | array + | fd + | newID + | object + deriving Repr, BEq, Inhabited structure ArgumentDesc where name : String @@ -80,9 +80,9 @@ structure ArgumentDesc where deriving Repr, BEq, Inhabited inductive MessageType where -| normal -| destructor -deriving Repr, BEq, Inhabited + | normal + | destructor + deriving Repr, BEq, Inhabited structure MessageDesc where name : String @@ -115,12 +115,12 @@ end Raw namespace Client structure InterfaceRef where - moduleName : Identifier - typeName : Identifier + protocol : Identifier + interface : Identifier deriving Repr, BEq, Ord, Inhabited structure EnumRef extends InterfaceRef where - enumName : Identifier + enum : Identifier deriving Repr, BEq, Ord, Inhabited structure EnumEntryDesc where @@ -140,22 +140,22 @@ structure EnumDesc where deriving Repr, BEq, Inhabited inductive Nullability where -| nullable -| notNull -deriving Repr, BEq, Inhabited + | nullable + | notNull + deriving Repr, BEq, Inhabited def Nullability.ofAllowNull (allowNull : Bool) : Nullability := if allowNull then .nullable else .notNull inductive ArgumentType where -| int (enum : Option EnumRef) -| uInt (enum : Option EnumRef) -| fixed -| string (nullability : Nullability) -| array -| fd -| object (nullability : Nullability) (interface : Option InterfaceRef) -deriving Repr, BEq, Inhabited + | int (enum : Option EnumRef) + | uint (enum : Option EnumRef) + | fixed + | string (nullability : Nullability) + | array + | fd + | object (nullability : Nullability) (interface : Option InterfaceRef) + deriving Repr, BEq, Inhabited structure ArgumentDesc where name : Identifier @@ -175,9 +175,9 @@ structure MessageDesc where deriving Repr, BEq, Inhabited inductive ReturnType where -| unit -| object (type : Option InterfaceRef) -deriving Repr, BEq, Inhabited + | unit + | object (type : Option InterfaceRef) + deriving Repr, BEq, Inhabited structure RequestDesc extends MessageDesc where returnType : ReturnType |
