Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kddnewton/vscode-lox
VSCode support for the lox language
https://github.com/kddnewton/vscode-lox
Last synced: 23 days ago
JSON representation
VSCode support for the lox language
- Host: GitHub
- URL: https://github.com/kddnewton/vscode-lox
- Owner: kddnewton
- Created: 2022-02-07T15:56:36.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-21T16:56:01.000Z (over 2 years ago)
- Last Synced: 2024-11-13T08:36:41.397Z (3 months ago)
- Language: TypeScript
- Size: 124 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vscode-lox
VSCode support for the lox programming language from the [Crafting Interpreters](https://craftinginterpreters.com/) book by Robert Nystrom.
## Getting started
This extension isn't published yet, as it does not yet support for the full language. However, if you want to play around with it while it continues to improve, you can perform the following:
* Clone the repository
```
git clone [email protected]:kddnewton/vscode-lox.git
cd vscode-lox
```* Install the dependencies
```
yarn install
```* Open VSCode within the workspace
```
code .
```* Run the extension locally (press `F5`)
* Open a `.lox` file.## Capabilities
This extension ships with:
* Syntax highlighting.
Many thanks to [Daniel Berezin](https://github.com/danman113/lox-language) for a lot of the work here. [LICENSE](syntaxes/LICENSE).
* Formatting support.
This package ships with a [prettier](https://prettier.io) plugin that performs formatting on request. You can trigger it with the `Format Document` command, or you can enable `formatOnSave` on your editor configuration.
* Diagnostics support.
While editing, this package enables basic syntax error highlighting. It is reasonably resiliant, such that a syntax error on one line won't trigger more errors on subsequent lines.
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/kddnewton/vscode-lox.
## License
The project is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).