Skip to content

Commit e803922

Browse files
fabergachristopherngutierrez
authored andcommitted
Kernel Language examples + Experimental VS Code Extension (#40)
* Experimental VS Code Extension for the Kernel Language * Kernel Language examples Signed-off-by: Flavio Bergamaschi <[email protected]>
1 parent 937c548 commit e803922

20 files changed

+366
-0
lines changed

kerngen/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@ data/
77

88
# Python artefacts
99
**/__pycache__/
10+
11+
# Playground
12+
zz_playground/
13+
14+
# vs code local config
15+
.vscode

kerngen/kerngen.py

100755100644
File mode changed.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CONTEXT BGV 16384 1
2+
DATA a 1
3+
DATA b 1
4+
DATA c 1
5+
ADD c a b
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CONTEXT BGV 16384 4
2+
DATA a 1
3+
DATA b 1
4+
DATA c 1
5+
ADD c a b
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CONTEXT BGV 8192 1
2+
DATA a 1
3+
DATA b 1
4+
DATA c 1
5+
ADD c a b
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CONTEXT BGV 8192 4
2+
DATA a 1
3+
DATA b 1
4+
DATA c 1
5+
ADD c a b
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
CONTEXT BGV 16384 1
2+
# inputs
3+
DATA a 2
4+
DATA b 2
5+
DATA c 2
6+
DATA d 2
7+
DATA e 2
8+
DATA f 2
9+
# temp variables
10+
DATA temp1 2
11+
DATA temp2 2
12+
DATA temp3 2
13+
DATA temp4 2
14+
# output
15+
DATA g 2
16+
# Code
17+
ADD temp1 a b
18+
ADD temp2 c d
19+
ADD temp3 e f
20+
ADD temp4 temp1 temp2
21+
ADD f temp3 temp4
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CONTEXT BGV 16384 4
2+
DATA a 2
3+
DATA b 2
4+
DATA c 2
5+
ADD c a b
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CONTEXT BGV 8192 1
2+
DATA a 2
3+
DATA b 2
4+
DATA c 2
5+
ADD c a b
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CONTEXT BGV 8192 4
2+
DATA a 2
3+
DATA b 2
4+
DATA c 2
5+
ADD c a b

0 commit comments

Comments
 (0)