-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from project-everest/_taramana_3d_consume_all
3d: allow fields that consume all input
- Loading branch information
Showing
12 changed files
with
75 additions
and
1 deletion.
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
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,13 @@ | ||
entrypoint | ||
typedef struct _test1 { | ||
UINT32 a; | ||
UINT16 b; | ||
UINT8 c; | ||
UINT8 remainder[:consume-all]; | ||
} test1; | ||
|
||
entrypoint | ||
typedef struct _test2 { | ||
test1 should_not_be_here; | ||
UINT8 c; | ||
} test2; |
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,7 @@ | ||
entrypoint | ||
typedef struct _test1 { | ||
UINT32 a; | ||
UINT16 b; | ||
UINT8 remainder[:consume-all]; | ||
UINT8 c; | ||
} test1; |
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,7 @@ | ||
entrypoint | ||
typedef struct _test1 { | ||
UINT32 a; | ||
UINT16 b; | ||
UINT8 c; | ||
UINT16 remainder[:consume-all]; | ||
} test1; |
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,28 @@ | ||
entrypoint | ||
typedef struct _test1 { | ||
UINT32 a; | ||
UINT16 b; | ||
UINT8 c; | ||
UINT8 remainder[:consume-all]; | ||
} test1; | ||
|
||
entrypoint | ||
typedef struct _test2 { | ||
UINT32BE a; | ||
UINT16BE b; | ||
UINT8BE c; | ||
UINT8BE remainder[:consume-all]; | ||
} test2; | ||
|
||
entrypoint | ||
typedef struct _test3 { | ||
UINT32 size1; | ||
test1 mytest1[:byte-size-single-element-array size1]; | ||
test1 mytest1_at_most[:byte-size-single-element-array-at-most size1]; | ||
test1 mytest1_array[:byte-size size1]; // in practice, this array will only have one element (or zero, if size1 == 0); | ||
UINT32 size2; | ||
test2 mytest2[:byte-size-single-element-array size2]; | ||
test2 mytest2_at_most[:byte-size-single-element-array-at-most size2]; | ||
test2 mytest2_array[:byte-size size2]; // in practice, this array will only have one element (or zero, if size2 == 0); | ||
UINT16 something_else; | ||
} test3; |