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 27, 2024
1 parent 09f1ddc commit 063f710
Show file tree
Hide file tree
Showing 23 changed files with 58 additions and 48 deletions.
5 changes: 4 additions & 1 deletion kerngen/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ data/
**/__pycache__/

# Playground
zz_playground/
zz_playground/

# vs code local config
.vscode
17 changes: 0 additions & 17 deletions kerngen/kernelLang/.vscode/launch.json

This file was deleted.

19 changes: 0 additions & 19 deletions kerngen/kernelLang/README.md

This file was deleted.

Empty file modified kerngen/kerngen.py
100755 → 100644
Empty file.
21 changes: 21 additions & 0 deletions kerngen/tutorials/SimpleExamples/ADD_C16K1rns_pyramid.ker
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
CONTEXT BGV 16384 1
# inputs
DATA a 2
DATA b 2
DATA c 2
DATA d 2
DATA e 2
DATA f 2
# temp variables
DATA temp1 2
DATA temp2 2
DATA temp3 2
DATA temp4 2
# output
DATA g 2
# Code
ADD temp1 a b
ADD temp2 c d
ADD temp3 e f
ADD temp4 temp1 temp2
ADD f temp3 temp4
4 changes: 4 additions & 0 deletions kerngen/tutorials/SimpleExamples/RELIN_C16K1rns.ker
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CONTEXT BGV 16384 1 1
DATA a 3
DATA b 2
RELIN b a
11 changes: 0 additions & 11 deletions kerngen/tutorials/SimpleExamples/example_multi-ADD_16K.ker

This file was deleted.

File renamed without changes.
File renamed without changes.
29 changes: 29 additions & 0 deletions kerngen/vsc_kerlang_extension/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# HERACLES Kernel Language extension for VS Code

This is an experimental first attempt at creating a VS Code extension that
understands the grammar of the HERACLES Kernel Language.

<mark>
<b>This is experimental code. Use it at your own risk.</b>
</mark>

## Installation

A pre-packaged version of this extension '.vsix' file is avialble in the
current folder.
You can manually install using the Install from VSIX command in the Extensions
view command dropdown. For an alternative way to install a local VS Code
extensions, please check the
[VS Code documentaiton](https://code.visualstudio.com/docs/editor/extension-marketplace#_install-from-a-vsix).

## Features

The only available feature is the toggle comments on a line

## Known Issues

The actual grammar is not yet working.

## Release Notes

None at the moment.
File renamed without changes.

0 comments on commit 063f710

Please sign in to comment.