Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
GordonSmith committed Aug 16, 2024
1 parent a2672a4 commit 03e6ce5
Show file tree
Hide file tree
Showing 17 changed files with 966 additions and 549 deletions.
3 changes: 2 additions & 1 deletion esbuild.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { writeFileSync } from "fs";
import { buildWatch, isProduction } from "@hpcc-js/esbuild-plugins";
import { aliasPath } from "esbuild-plugin-alias-path";

export function nodeTpl(input, output, format = "esm", external = []) {
return buildWatch({
Expand Down Expand Up @@ -54,7 +55,7 @@ export function browserTpl(input, output, format = "esm", globalName = undefined
}

// config ---
nodeTpl("src/extension.ts", "dist/extension", "cjs", ["vscode"]);
nodeTpl("src/extension.ts", "dist/extension", "cjs", ["vscode", "fs"]);
nodeTpl("src/notebook/renderers/wuRenderer.tsx", "dist/notebook/renderers/wuRenderer", "cjs", ["vscode", "fs", "path", "os"]);
nodeTpl("src/notebook/renderers/ojsRenderer.ts", "dist/notebook/renderers/ojsRenderer", "cjs", ["vscode", "fs", "path", "os"]);
nodeTpl("src/debugger.ts", "dist/debugger", "cjs", ["vscode"]);
Expand Down
71 changes: 66 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 44 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"compile-types-watch": "npm run compile-types -- --watch",
"compile-ts": "node esbuild.mjs",
"compile-ts-dev": "npm run compile-ts -- --mode=development",
"compile-ts-watch": "npm run compile-ts-dev -- --serve",
"compile-ts-watch": "npm run compile-ts-dev -- --watch",
"compile-util": "tsc --project ./tsconfig.util.json",
"compile-util-watch": "npm run compile-util -- -w",
"compile": "run-p compile-types compile-ts",
Expand All @@ -47,6 +47,7 @@
"update": "npx npm-check-updates -u -t minor"
},
"dependencies": {
"@vscode/prompt-tsx": "^0.2.6-alpha",
"exceljs": "4.4.0"
},
"devDependencies": {
Expand Down Expand Up @@ -80,13 +81,14 @@
"@vscode/extension-telemetry": "0.9.7",
"@vscode/vsce": "2.32.0",
"adm-zip": "0.5.15",
"antlr4": "4.11.0",
"antlr4": "4.13.2",
"assert": "2.1.0",
"copy-to-clipboard": "3.3.3",
"copyfiles": "2.4.1",
"csv-writer": "1.6.0",
"diff": "5.2.0",
"esbuild": "0.23.0",
"esbuild-plugin-alias-path": "^2.0.2",
"esbuild-plugin-text-replace": "1.3.0",
"esbuild-plugin-umd-wrapper": "3.0.0",
"eslint": "8.57.0",
Expand Down Expand Up @@ -201,6 +203,46 @@
"path": "./snippets/kel.json"
}
],
"chatParticipants": [
{
"id": "chat.ecl",
"fullName": "ECL",
"name": "ecl",
"description": "Ask your ECL question here?",
"isSticky": true,
"commands": [
{
"name": "randomTeach",
"description": "Pick at random a computer science concept then explain it in purfect way of a cat"
},
{
"name": "play",
"description": "Do whatever you want, you are a cat after all",
"disambiguation": [
{
"categoryName": "cat_play",
"description": "The user just wants to relax and see the cat play.",
"examples": [
"Enough learning, let the cat play with a ball of yarn",
"Can you show me a cat playing with a laser pointer?"
]
}
]
}
],
"disambiguation": [
{
"categoryName": "ecl",
"description": "The user wants to learn about ECL in an informal way.",
"examples": [
"Teach me about ECL JOINs using metaphors",
"Explain to me what a grouped aggregate is in a simple way",
"Can you explain to me what is a function in the ECL language?"
]
}
]
}
],
"viewsWelcome": [],
"commands": [
{
Expand Down
4 changes: 2 additions & 2 deletions scripts/grammar-generate.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash

cd ./grammar/kel
java -jar ../antlr-4.10.1-complete.jar -Dlanguage=JavaScript -o ../../src/grammar/kel -visitor -Xexact-output-dir ./*.g4
java -jar ../antlr-4.13.2-complete.jar -Dlanguage=JavaScript -o ../../src/grammar/kel -visitor -Xexact-output-dir ./*.g4
cd ../..

cd ./grammar/salt
java -jar ../antlr-4.10.1-complete.jar -Dlanguage=JavaScript -o ../../src/grammar/salt -visitor -Xexact-output-dir ./*.g4
java -jar ../antlr-4.13.2-complete.jar -Dlanguage=JavaScript -o ../../src/grammar/salt -visitor -Xexact-output-dir ./*.g4
cd ../..

# cd ./grammar/dude
Expand Down
Loading

0 comments on commit 03e6ce5

Please sign in to comment.