JSPM

  • Created
  • Published
  • Downloads 22
  • Score
    100M100P100Q95638F
  • License MIT

Wire DSL language definitions for Monaco, VS Code, and other editors. Keywords, components, properties, autocompletion, grammar, and document parsing.

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-support

Quick 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 setup

What'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

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