Major additions and improvements across the Bob language ecosystem: Core Language Features: - Add comprehensive dictionary support with full CRUD operations - Implement built-in functions: keys(), values(), has() for dictionaries - Add string multiplication operator (string * number) - Enhance error reporting with detailed context and call stacks - Add ternary operator support (condition ? true_expr : false_expr) - Implement do-while loops with break/continue support - Add array increment/decrement operators (++, --) - Add cross-type comparison operators with proper type coercion - Implement toInt() function for float-to-integer conversion - Add float array index auto-truncation (like JavaScript/Lua) Code Quality & Linter Fixes: - Remove all "using namespace std;" statements (best practice) - Add proper std:: prefixes throughout codebase - Fix const correctness in helper functions - Resolve class/struct declaration mismatches - Fix sign comparison warnings in array indexing - Remove unused lambda captures in built-in functions - Fix brace initialization warnings in parser Documentation & Tooling: - Significantly expand BOB_LANGUAGE_REFERENCE.md with new features - Update VS Code extension with enhanced syntax highlighting - Add comprehensive code snippets for new language features - Update version information and package metadata Test Suite: - Add extensive dictionary functionality tests - Add tests for new operators and built-in functions - Add comprehensive copy behavior tests (by value vs by reference) - Add performance and edge case testing Architecture Improvements: - Enhance Value system with proper move semantics - Improve memory management with shared_ptr for complex types - Add trampoline-based tail call optimization - Implement proper error context propagation This represents a major milestone in Bob language development with production-ready dictionary support, comprehensive testing, and significantly improved code quality.
74 lines
1.6 KiB
JSON
74 lines
1.6 KiB
JSON
{
|
|
"name": "bob-language",
|
|
"displayName": "Bob Language",
|
|
"description": "Syntax highlighting and language support for the Bob programming language - featuring arrays, dictionaries, auto-truncating float indices, increment/decrement operators, cross-type comparisons, and comprehensive built-in functions",
|
|
"version": "0.4.0",
|
|
"engines": {
|
|
"vscode": "^1.60.0"
|
|
},
|
|
"categories": [
|
|
"Programming Languages"
|
|
],
|
|
"keywords": [
|
|
"bob",
|
|
"programming",
|
|
"language",
|
|
"syntax",
|
|
"highlighting"
|
|
],
|
|
"publisher": "bob-lang",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/bob-lang/bob-vscode-extension"
|
|
},
|
|
"license": "MIT",
|
|
"main": "./out/extension.js",
|
|
"activationEvents": [
|
|
"onLanguage:bob"
|
|
],
|
|
"contributes": {
|
|
"languages": [
|
|
{
|
|
"id": "bob",
|
|
"aliases": [
|
|
"Bob",
|
|
"bob"
|
|
],
|
|
"extensions": [
|
|
".bob"
|
|
],
|
|
"configuration": "./language-configuration.json"
|
|
}
|
|
],
|
|
"grammars": [
|
|
{
|
|
"language": "bob",
|
|
"scopeName": "source.bob",
|
|
"path": "./syntaxes/bob.tmLanguage.json"
|
|
}
|
|
],
|
|
"snippets": [
|
|
{
|
|
"language": "bob",
|
|
"path": "./snippets/bob.json"
|
|
}
|
|
],
|
|
"themes": [
|
|
{
|
|
"label": "Bob Dark",
|
|
"uiTheme": "vs-dark",
|
|
"path": "./themes/bob-dark.json"
|
|
}
|
|
]
|
|
},
|
|
"scripts": {
|
|
"vscode:prepublish": "npm run compile",
|
|
"compile": "tsc -p ./",
|
|
"watch": "tsc -watch -p ./"
|
|
},
|
|
"devDependencies": {
|
|
"@types/vscode": "^1.60.0",
|
|
"@types/node": "^16.0.0",
|
|
"typescript": "^4.5.0"
|
|
}
|
|
} |