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
- 📱 Editor Integration: Developed with Helix. Should work with VS Code, and any LSP-compatible editor but only tested on Helix.
- âš¡ Performance: SQLite-backed for consistent, fast responses
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:
- For Helix: See the language.toml example in the 'helix-editor' sub directory.
Example Usage
\ 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:
- completion of 'lshift' with an example ---
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 ```