-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VM constructors matches the order in the declared type.
Fixes #79
- Loading branch information
Showing
9 changed files
with
68 additions
and
4 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
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,9 @@ | ||
def P = | ||
block | ||
a = 'x' | ||
b = Many UInt8 | ||
|
||
def Main : P = | ||
block | ||
b = "bb" | ||
a = 'a' |
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 @@ | ||
module T077 | ||
|
||
--- Imports: | ||
|
||
--- Type defs: | ||
type T077.P = { a: uint 8 | ||
; b: [uint 8] | ||
} | ||
|
||
--- Rules: | ||
|
||
T077.P : Grammar T077.P = | ||
do (a : uint 8) <- pure 'x' | ||
(b : [uint 8]) <- Many[] Match UInt8 | ||
pure {a = a, | ||
b = b} | ||
|
||
T077.Main : Grammar T077.P = | ||
do (b : [uint 8]) <- pure "bb" | ||
(a : uint 8) <- pure 'a' | ||
pure {b = b, | ||
a = a} | ||
|
||
T077.P_ : Grammar {} = | ||
@Many[] @Match UInt8 | ||
|
||
T077.Main_ : Grammar {} = | ||
pure {} |
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,3 @@ | ||
dump | ||
--vm | ||
T077.ddl |
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 @@ | ||
module DaedalusMain where | ||
|
||
|
||
type P = | ||
struct | ||
a : Word 8 | ||
b : [Word 8] | ||
|
||
.function Main | ||
.root | ||
.entry L_0_Main9 | ||
L_0_Main9(ra0o : Input): /* normal block */ | ||
r0 = "bb"() | ||
r1 = newStruct @P(97 @(Word 8), r0) | ||
popDebug | ||
return(r1, ra0o) |