Ext fixes

Merge request lab2425_spring/WACC_37!45

Co-authored-by: Guy C <gc1523@ic.ac.uk>
This commit is contained in:
Connolly, Guy
2025-03-14 18:05:00 +00:00
6 changed files with 6 additions and 3 deletions

1
.gitignore vendored
View File

@@ -4,3 +4,4 @@
.vscode/
wacc-examples/
.idea/
**/.temp_wacc_file.*

View File

@@ -40,13 +40,13 @@ function generateErrors(code, filePath) {
let output;
try {
const waccExePath = `${__dirname}/../wacc-compiler`;
output = execSync(`${waccExePath} ${tmpFilePath}`, { encoding: 'utf8', stdio: 'pipe' });
const waccExePath = `${__dirname}/wacc-compiler`;
output = execSync(`${waccExePath} ${tmpFilePath}`, { encoding: 'utf8', shell: true, stdio: 'pipe'});
} catch (err) {
console.log("Error running compiler");
output = err.stdout;
console.log(output);
}
}
let errors = [];
errorRegex = /\(line ([\d]+), column ([\d]+)\):\n([^>]+)([^\^]+)([\^]+)\n([^\n]+)([^\(]*)/g
while((match = errorRegex.exec(output)) !== null) {

BIN
wacc-syntax/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 571 KiB

View File

@@ -3,6 +3,8 @@
"displayName": "intelliWACC",
"description": "WACC language support features",
"version": "0.0.1",
"publisher": "WACC-37-2025",
"icon": "icon.png",
"engines": {
"vscode": "^1.97.0"
},

Binary file not shown.