Mecrisp-Stellaris LSP

index.md at bee2bd3effb3f2607e60a3f3bb4b443f9da225c8
Login

index.md at bee2bd3effb3f2607e60a3f3bb4b443f9da225c8

File doc/index.md artifact 0058e5e0c7 part of check-in bee2bd3effb3f2607e60a3f3bb4b443f9da225c8


An LSP implementation for mecrisp-stellaris embedded Forth development, providing syntax highlighting, code navigation, and diagnostics in your favorite editor.


Key Features


Installation & Usage

# Clone the repository (Fossil SCM)
fossil clone https://chiselapp.com/user/tp/repository/mecrisp-stellaris-lsp

# Install dependencies
pip install pygls

# Start the language server
python3 mecrisp_stellaris_lsp.py

Editor Configuration:

  1. For Helix: See the language.toml example in the 'helix-editor' sub directory.

Example Usage

Language Server Example

\ STM32F4 LED control example
: LED-ON  ( -- )  0x40020000 1 B! ; \ Enable blue LED

: MAIN  ( -- )
    LED-ON
    1000 MS  \ Wait 1 second
    LED-OFF
;

 1 8 lsâš¡

The language server provides:

Dependencies

Component Version
Python 3.9+
pygls 1.3.1+
SQLite 3.0+

Contribute

We welcome contributions! See:CONTRIBUTING for guidelines.

License: MIT


Developed by Terry Porter* *Repository hosted on Fossil SCM ```