Package Exports
- @wire-dsl/language-support
- @wire-dsl/language-support/completions
- @wire-dsl/language-support/components
- @wire-dsl/language-support/context-detection
- @wire-dsl/language-support/document-parser
- @wire-dsl/language-support/documentation
- @wire-dsl/language-support/grammar
Readme
@wire-dsl/language-support
Shared language definitions for Wire DSL - used by Monaco Editor, VS Code, and CLI tools.
Installation
npm install @wire-dsl/language-supportQuick Start
import { getCompletions, ALL_KEYWORDS } from '@wire-dsl/language-support';
import { MONACO_GRAMMAR } from '@wire-dsl/language-support/grammar';
// Use completions
const suggestions = getCompletions('but'); // → [button, ...]
// Use grammar for syntax highlighting
// See INTEGRATION-GUIDE.md for setupWhat's Included
- Core Keywords - project, screen, style, layout, component, define
- 30+ UI Components - All built-in components with autocomplete
- Autocomplete Logic - Context-aware suggestions
- Syntax Grammar - For Monaco, VS Code, and TextMate editors
Documentation
- STRATEGY.md - NPM publication strategy & rationale
- INTEGRATION-GUIDE.md - How to use in your tool
Exports
// Keywords and components
export { ALL_KEYWORDS, KEYWORDS, PROPERTIES } from '@wire-dsl/language-support';
export { getCompletions, getKeywordsByType } from '@wire-dsl/language-support';
// Grammar for syntax highlighting
export { MONACO_GRAMMAR, TOKENIZE_RULES } from '@wire-dsl/language-support/grammar';
// Advanced completions
export { getContextualCompletions } from '@wire-dsl/language-support/completions';Published Versions
- 1.0.0 - Initial release with 35+ keywords and components
License
MIT - See LICENSE in root directory