- Add while, for, and do-while loops with break/continue - Implement assignment statements (prevents if(x=10) bugs) - Keep assignment expressions only for for-loop clauses - Fix critical memory management bug (dangling pointers in cleanup) - Add automatic memory cleanup with conservative reference counting - Consolidate documentation into single reference file - Add comprehensive test coverage for all loop types and edge cases - VSCode extension for bob highlighting and snippets
27 lines
626 B
Bash
Executable File
27 lines
626 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Package Bob Language Extension as VSIX
|
|
|
|
echo "Packaging Bob Language Extension..."
|
|
|
|
# Check if vsce is installed
|
|
if ! command -v vsce &> /dev/null; then
|
|
echo "Installing vsce..."
|
|
npm install -g @vscode/vsce
|
|
fi
|
|
|
|
# Install dependencies
|
|
npm install
|
|
|
|
# Compile TypeScript
|
|
npm run compile
|
|
|
|
# Package the extension
|
|
vsce package
|
|
|
|
echo "Extension packaged successfully!"
|
|
echo "You can now install the .vsix file in VS Code/Cursor:"
|
|
echo "1. Open VS Code/Cursor"
|
|
echo "2. Go to Extensions (Ctrl+Shift+X)"
|
|
echo "3. Click the '...' menu and select 'Install from VSIX...'"
|
|
echo "4. Select the generated .vsix file" |