feat: add semi-human-readable-and-writable-ir
This commit is contained in:
parent
4db6eb4317
commit
ee675de202
3 changed files with 119 additions and 23 deletions
|
@ -1,12 +1,17 @@
|
|||
(
|
||||
[
|
||||
Read((
|
||||
source: File("testfiles/juan.png"),
|
||||
format: Jpeg
|
||||
instructions: {
|
||||
0: Read((
|
||||
source: File("testfiles/juan.jpg"),
|
||||
format: Jpeg,
|
||||
)),
|
||||
Write((
|
||||
1: Write((
|
||||
target: File("testfiles/out.png"),
|
||||
format: Png
|
||||
))
|
||||
]
|
||||
format: Png,
|
||||
)),
|
||||
},
|
||||
edges: {
|
||||
(on: 0, idx: 0): [
|
||||
(on: 1, idx: 0),
|
||||
],
|
||||
},
|
||||
)
|
||||
|
|
|
@ -1,13 +1,17 @@
|
|||
(
|
||||
[
|
||||
Read((
|
||||
instructions: {
|
||||
0: Read((
|
||||
source: File("testfiles/juan.jpg"),
|
||||
format: Jpeg
|
||||
format: Jpeg,
|
||||
)),
|
||||
Filter(Invert),
|
||||
Write((
|
||||
target: File("testfiles/inverted.jpg"),
|
||||
format: Jpeg
|
||||
))
|
||||
]
|
||||
1: Filter(Invert),
|
||||
2: Write((
|
||||
target: File("testfiles/inverted.png"),
|
||||
format: Png,
|
||||
)),
|
||||
},
|
||||
edges: {
|
||||
(on: 0, idx: 0): [(on: 1, idx: 0)],
|
||||
(on: 1, idx: 0): [(on: 2, idx: 0)],
|
||||
},
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue