You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/install-matlab-tree-sitter-grammar.org
+41-4Lines changed: 41 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,11 +61,10 @@ tree-sitter ABI is 15. There are different methods for installing this.
61
61
62
62
and install matlab (and other languages tree-sitter shared objects if you'd like).
63
63
64
-
- Method 2 :: Install from the abi/14 branch
64
+
- Method 2 :: Install from the abi/14 branch on *Unix*
65
65
66
66
Install the C compiler if not installed. When installing from source, you need to use the correct
67
-
compiler. If you use the wrong compiler, you'll see undefined errors. For example, Windows Emacs
68
-
doesn't work with gcc from MSys2 (you need Visual Studio I think).
67
+
compiler.
69
68
70
69
Debian Emacs was built using gcc and you can get gcc via:
71
70
@@ -88,7 +87,7 @@ tree-sitter ABI is 15. There are different methods for installing this.
88
87
: Enter the C++ compiler to use (default: auto-detect):
89
88
: Install to (default: ~/.emacs.d/tree-sitter):
90
89
91
-
- Method 3 :: Generate the grammar for ABI 14
90
+
- Method 3 :: Generate the grammar for ABI 14 on *Unix*
92
91
93
92
Install JavaScript node and C compiler if not installed. See above to install the C compiler. This
94
93
will install JavaScript node on Debian:
@@ -128,6 +127,44 @@ tree-sitter ABI is 15. There are different methods for installing this.
128
127
: Enter the C++ compiler to use (default: auto-detect):
129
128
: Install to (default: ~/.emacs.d/tree-sitter):
130
129
130
+
- Method 4 :: Generate the grammar for ABI 14 on *Windows*
131
+
132
+
Windows 11 64-bit:
133
+
134
+
Here we assume we've set HOME=C:\Users\YourUserName.
135
+
136
+
1. Install the Visual Studio, the [[https://visualstudio.microsoft.com/vs/community/][community version]] should work. Select "Desktop development with
137
+
C++".
138
+
139
+
2. Install Node.js and npm. See https://nodejs.org/
140
+
141
+
3. Place the tree-sitter CLI tool in some directory, say
0 commit comments