Skip to content

Commit

Permalink
Updates to VSC extension and Kernel Generator examples
Browse files Browse the repository at this point in the history
  • Loading branch information
faberga committed Aug 26, 2024
1 parent fe2b0b8 commit 09f1ddc
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 11 deletions.
2 changes: 1 addition & 1 deletion kerngen/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ data/
**/__pycache__/

# Playground
playground/
zz_playground/
3 changes: 3 additions & 0 deletions kerngen/kernelLang/.vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.vscode/**
.vscode-test/**
.gitignore
12 changes: 6 additions & 6 deletions kerngen/kernelLang/grammars/kerlang.tmLanguage.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"scopeName": "source.kerlang",
"fileTypes": ["kerlang"],
"patterns": [
{
"name": "comment.line.double-dash.kerlang",
"name": "comment.line.number-sign.kerlang",
"match": "# .*$"
},
{
"name": "keyword.operator.kerlang",
"match": "\\b(COPY|ADD|MUL|MULI|RELIN|NTT|INTT|MOD|MODUP|SQUARE)\\b"
}
"name": "keyword.other.kerlang",
"match": "\b(COPY|ADD|MUL|MULI|RELIN|NTT|INTT|MOD|MODUP|SQUARE)\b"
}
],
"repository": {},
"fileTypes": ["kerlang"]
"repository": {}
}
Binary file modified kerngen/kernelLang/heracles-kerlang-syntax-0.0.1.vsix
Binary file not shown.
2 changes: 1 addition & 1 deletion kerngen/kernelLang/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"private": true,
"license": "Apache-2.0",
"engines": {
"vscode": "^1.0.0"
"vscode": "^1.92.0"
},
"categories": ["Programming Languages"],
"contributes": {
Expand Down
5 changes: 5 additions & 0 deletions kerngen/tutorials/SimpleExamples/example_ADD_16K1rns.ker
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CONTEXT BGV 16384 1
DATA a 1
DATA b 1
DATA c 1
ADD c a b
5 changes: 5 additions & 0 deletions kerngen/tutorials/SimpleExamples/example_ADD_16K4rns.ker
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CONTEXT BGV 16384 4
DATA a 1
DATA b 1
DATA c 1
ADD c a b
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ DATA a 1
DATA b 1
DATA c 1
ADD c a b


5 changes: 5 additions & 0 deletions kerngen/tutorials/SimpleExamples/example_ADD_8K4rns.ker
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CONTEXT BGV 8192 4
DATA a 1
DATA b 1
DATA c 1
ADD c a b
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CONTEXT BGV 16384 1
CONTEXT BGV 16384 4
DATA a 2
DATA b 2
DATA c 2
Expand Down
5 changes: 5 additions & 0 deletions kerngen/tutorials/SimpleExamples/example_ADD_C8K1rns.ker
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CONTEXT BGV 8192 1
DATA a 2
DATA b 2
DATA c 2
ADD c a b
5 changes: 5 additions & 0 deletions kerngen/tutorials/SimpleExamples/example_ADD_C8K4rns.ker
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CONTEXT BGV 8192 4
DATA a 2
DATA b 2
DATA c 2
ADD c a b

0 comments on commit 09f1ddc

Please sign in to comment.