@razdolbai/merls 0.1.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -16
- package/examples/coc-settings.json +2 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## Status
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
The MVP LSP feature set for Merlin-style 6502 assembly is complete and published to npm as `@razdolbai/merls`. It provides core language server features and is ready to be used with editors like `coc.nvim`. All planned tasks in `PLAN.md` have been fulfilled.
|
|
8
8
|
|
|
9
9
|
## Goals
|
|
10
10
|
|
|
@@ -42,6 +42,14 @@ This repository now has an initial Node.js and TypeScript workspace scaffold, a
|
|
|
42
42
|
- **process model:** standalone stdio server
|
|
43
43
|
- **development style:** TDD from the start
|
|
44
44
|
|
|
45
|
+
## Installation
|
|
46
|
+
|
|
47
|
+
Install globally via npm:
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
npm install -g @razdolbai/merls
|
|
51
|
+
```
|
|
52
|
+
|
|
45
53
|
## Development workflow
|
|
46
54
|
|
|
47
55
|
- `npm install`: install project dependencies
|
|
@@ -75,28 +83,18 @@ See `PLAN.md` for the full checklist.
|
|
|
75
83
|
|
|
76
84
|
The intended integration model is a standard `languageserver` entry in `coc-settings.json` that launches `merls` over stdio.
|
|
77
85
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
1. run `npm install`
|
|
81
|
-
2. run `npm run build`
|
|
82
|
-
3. point coc.nvim at `dist/src/cli.js --stdio`
|
|
83
|
-
|
|
84
|
-
The bundled example uses `node` plus an absolute path to the packaged CLI, passes `--stdio`, uses `package.json` and `.git` as root markers, and currently targets the `asm` filetype.
|
|
85
|
-
|
|
86
|
-
The intended `languageserver` shape is:
|
|
86
|
+
If you installed `merls` globally via npm, the `languageserver` shape is:
|
|
87
87
|
|
|
88
88
|
```json
|
|
89
89
|
{
|
|
90
90
|
"languageserver": {
|
|
91
91
|
"merls": {
|
|
92
|
-
"command": "
|
|
92
|
+
"command": "merls",
|
|
93
93
|
"args": [
|
|
94
|
-
"C:/path/to/merls/dist/src/cli.js",
|
|
95
94
|
"--stdio"
|
|
96
95
|
],
|
|
97
96
|
"rootPatterns": [
|
|
98
|
-
".git"
|
|
99
|
-
"package.json"
|
|
97
|
+
".git"
|
|
100
98
|
],
|
|
101
99
|
"filetypes": [
|
|
102
100
|
"asm"
|
|
@@ -106,7 +104,7 @@ The intended `languageserver` shape is:
|
|
|
106
104
|
}
|
|
107
105
|
```
|
|
108
106
|
|
|
109
|
-
|
|
107
|
+
An example configuration lives in `examples/coc-settings.json`.
|
|
110
108
|
|
|
111
109
|
## Development notes
|
|
112
110
|
|
|
@@ -128,7 +126,7 @@ Replace the example path with the local checkout or installed package location o
|
|
|
128
126
|
- The current `textDocument/completion` handler is wired through `src/server.ts` and `src/lsp/completion.ts`.
|
|
129
127
|
- The current `textDocument/publishDiagnostics` path is wired through `src/server.ts` and `src/lsp/diagnostics.ts`, with full-document sync on open and change so coc.nvim receives live parser and resolver errors.
|
|
130
128
|
- The packaged CLI entrypoint now lives in `src/cli.ts`, compiles to `dist/src/cli.js`, and supports the explicit stdio contract `merls --stdio`.
|
|
131
|
-
- The checked-in coc.nvim example
|
|
129
|
+
- The checked-in coc.nvim example targets the globally installed `merls` command and includes root detection for `.git`.
|
|
132
130
|
- The positive fixture corpus now starts with transcribed Merlin32 material under `test/fixtures/valid/`.
|
|
133
131
|
- Positive fixtures should cover supported 6502 Merlin-style syntax.
|
|
134
132
|
- The negative fixture corpus now starts with explicit 65816-only samples under `test/fixtures/invalid/`.
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"languageserver": {
|
|
3
3
|
"merls": {
|
|
4
|
-
"command": "
|
|
4
|
+
"command": "merls",
|
|
5
5
|
"args": [
|
|
6
|
-
"C:/Users/alexe/Projects/merls/dist/src/cli.js",
|
|
7
6
|
"--stdio"
|
|
8
7
|
],
|
|
9
8
|
"rootPatterns": [
|
|
10
|
-
".git"
|
|
11
|
-
"package.json"
|
|
9
|
+
".git"
|
|
12
10
|
],
|
|
13
11
|
"filetypes": [
|
|
14
12
|
"asm"
|