-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
just run `make` therein to find out if the `idlc` has changed semantics. Also includes some clean-up on `default.nix`.
- Loading branch information
Showing
10 changed files
with
113 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
RUNFLAGS = | ||
|
||
all: | ||
../run.sh $(RUNFLAGS) *.didl | ||
|
||
accept: | ||
../run.sh $(RUNFLAGS) -a *.didl | ||
|
||
clean: | ||
rm -rf _out | ||
|
||
include ../*.mk |
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const RegionId = IDL.nat | ||
const UserId = IDL.nat | ||
const TruckTypeId = IDL.nat | ||
const ProducerId = IDL.nat | ||
const UserInfo = | ||
IDL.Obj({'id': UserId, 'public_key': IDL.text, 'user_name': IDL.text, | ||
'description': IDL.text, 'region': RegionId, | ||
'produceId': IDL.Opt(ProducerId)}) | ||
const EntId = | ||
IDL.Obj({'user': UserId, 'truckType': TruckTypeId, 'region': RegionId}) | ||
const OpEntId = IDL.Opt(EntId) | ||
const IdErr = IDL.Obj({'idErr': OpEntId}) | ||
const Inventory = IDL.Obj({'produce_id': IDL.nat, 'quantity': IDL.nat}) | ||
const ProduceExchange = new IDL.ActorInterface({ | ||
getInventory: | ||
IDL.message(IDL.Obj({'producer_id': IDL.nat}), IDL.Obj({'0': Inventory}))}) |
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
const my_type = IDL.nat | ||
const B = my_type | ||
const C = E | ||
const E = IDL.Opt(C) | ||
const node = IDL.Obj({'head': IDL.nat, 'tail': list}) | ||
const list = IDL.Opt(node) | ||
const enum = | ||
IDL.Variant({'red': IDL.null, 'blue': IDL.null, 'green': IDL.null}) | ||
const message = IDL.Obj({'name': IDL.text, '25': C, '26': IDL.reserved}) | ||
const test = | ||
IDL.Obj({'0': IDL.nat, '1': IDL.nat, '2': IDL.nat, '99': IDL.nat, | ||
'100': IDL.nat, 'named_field': IDL.nat, '108546619': IDL.nat, | ||
'108546620': IDL.nat, '108546621': IDL.nat}) | ||
const nest_record = | ||
IDL.Obj({'0': IDL.nat, '1': IDL.nat, '2': IDL.nat, | ||
'3': IDL.Obj({'0': IDL.nat, '1': IDL.nat, '2': IDL.nat}), '4': IDL.nat, | ||
'5': IDL.nat, '6': IDL.nat}) | ||
const tree = | ||
IDL.Variant({'leaf': IDL.int, | ||
'branch': IDL.Obj({'left': tree, 'val': IDL.int, 'right': tree})}) | ||
const s = IDL.ActorInterface({f: t}) | ||
const t = IDL.message(IDL.Obj({'server': s}), IDL.Obj({})) | ||
const broker = | ||
IDL.ActorInterface({ | ||
find: | ||
IDL.message(IDL.Obj({'name': IDL.text}), | ||
IDL.Obj({ | ||
'0': | ||
IDL.ActorInterface({up: IDL.message(IDL.Obj({}), IDL.Obj({})), | ||
current: IDL.message(IDL.Obj({}), IDL.Obj({'0': IDL.nat}))}) | ||
})) | ||
}) | ||
const stream = | ||
IDL.Opt( | ||
IDL.Obj({'head': IDL.nat, | ||
'next': IDL.message(IDL.Obj({}), IDL.Obj({'0': stream}))})) | ||
|
||
const user = new IDL.ActorInterface({ | ||
addUser: IDL.message(IDL.Obj({'0': IDL.nat}), IDL.Obj({'0': my_type})), | ||
userName: IDL.message(IDL.Obj({'0': IDL.nat}), IDL.Obj({'0': stream}))}) |
File renamed without changes.
File renamed without changes.
This file contains 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 characters