https://github.com/achronyme/achronyme-vscode
Official VS Code extension for Achronyme SOC (Scientific Operations Calculator) - syntax highlighting, intelligent autocompletion for 100+ built-in functions, and code snippets
https://github.com/achronyme/achronyme-vscode
autocompletion code-snippets language-support programming-language scientific-computing syntax-highlighting vscode vscode-extension
Last synced: 7 months ago
JSON representation
Official VS Code extension for Achronyme SOC (Scientific Operations Calculator) - syntax highlighting, intelligent autocompletion for 100+ built-in functions, and code snippets
- Host: GitHub
- URL: https://github.com/achronyme/achronyme-vscode
- Owner: achronyme
- License: mit
- Created: 2025-11-15T23:35:37.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-11-16T00:14:38.000Z (7 months ago)
- Last Synced: 2025-11-16T01:24:17.995Z (7 months ago)
- Topics: autocompletion, code-snippets, language-support, programming-language, scientific-computing, syntax-highlighting, vscode, vscode-extension
- Language: TypeScript
- Size: 52.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Achronyme SOC Language Support
VS Code extension for the Achronyme SOC (Scientific Operations Calculator) language.
## Features
- **Syntax Highlighting** - Full syntax coloring for keywords, operators, types, functions, and literals
- **Autocompletion** - Intelligent suggestions for keywords, types, built-in functions, and constants
- **Snippets** - Code templates for common patterns (lambdas, loops, records, etc.)
- **Bracket Matching** - Auto-closing and matching for `{}`, `[]`, `()`
- **Comment Support** - Toggle line comments with `Ctrl+/`
## Supported File Extensions
- `.soc` - Achronyme source files
- `.ach` - Achronyme archive files
## Language Features
- Arithmetic expressions with proper precedence
- Boolean literals and logical operators
- Comparison operators
- Conditional expressions
- Lambda functions with closures and type annotations
- Vectors, matrices, and tensors
- Records with mutable fields
- Generator functions
- Graph edges and networks
- Module system with imports/exports
- Gradual typing system
## Installation
### From Source
1. Clone this repository
2. Run `npm install`
3. Run `npm run compile`
4. Press F5 to launch Extension Development Host
### Package as VSIX
```bash
npm install -g @vscode/vsce
vsce package
```
Then install the generated `.vsix` file.
## Usage Examples
```soc
// Variable declarations
let x: Number = 42
mut counter = 0
// Lambda functions
let square = x => x^2
let add = (a: Number, b: Number): Number => a + b
// Higher-order functions
let doubled = map([1, 2, 3], x => x * 2)
// Records
let point = { x: 10, mut y: 20 }
// Control flow
if(x > 0) {
"positive"
} else {
"non-positive"
}
// Generators
let gen = generate {
yield 1
yield 2
yield 3
}
// Graph operations
let graph = network([
A -> B : { weight: 5 },
B -> C : { weight: 3 }
])
```
## Built-in Functions
The extension provides autocompletion for 100+ built-in functions including:
- **Math**: sin, cos, tan, exp, ln, sqrt, pow, etc.
- **Array**: map, filter, reduce, len, range, etc.
- **Statistics**: sum, mean, std
- **String**: concat, split, join, upper, lower, etc.
- **Graph**: network, dijkstra, bfs, dfs, etc.
- **DSP**: fft, ifft, conv, linspace, etc.
- **Optimization**: simplex, linprog, etc.
## License
MIT