[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49946] [PATCH v7 07/32] gnu: Add tree-sitter-c.
From: |
( |
Subject: |
[bug#49946] [PATCH v7 07/32] gnu: Add tree-sitter-c. |
Date: |
Fri, 25 Nov 2022 06:56:32 +0000 |
On Fri Nov 25, 2022 at 1:21 AM GMT, Pierre Langlois wrote:
> * gnu/packages/tree-sitter.scm (tree-sitter-c): New variable.
> --- a/gnu/packages/tree-sitter.scm
> +++ b/gnu/packages/tree-sitter.scm
> @@ -156,3 +157,35 @@ (define-public tree-sitter-cli
> This package includes the @command{tree-sitter} command-line tool.")
> (license license:expat)))
> +
> +(define tree-sitter-delete-generated-files
> + '(begin
> + (delete-file "binding.gyp")
> + (delete-file-recursively "bindings")
> + (delete-file "src/grammar.json")
> + (delete-file "src/node-types.json")
> + (delete-file "src/parser.c")
> + (delete-file-recursively "src/tree_sitter")
> + #t))
No need to outline this; just do
(snippet
#~(begin
(for-each delete-file
(list "binding.gyp"
"src/grammar.json"
"src/node-types.json"
"src/parser.c"))
(for-each delete-file-recursively
(list "bindings"
"src/tree_sitter"))))
Shouldn't some of this deletion (namely, that of pregenerated files)
be handled by tree-sitter, though?
> + (build-system tree-sitter-build-system)
...I think you may have forgotten to send the patches for the
tree-sitter-build-system?
-- (
- [bug#49946] [PATCH v7 04/32] gnu: Add rust-smallbitvec-2., (continued)
- [bug#49946] [PATCH v7 04/32] gnu: Add rust-smallbitvec-2., Pierre Langlois, 2022/11/24
- [bug#49946] [PATCH v7 03/32] gnu: Add rust-html-escape., Pierre Langlois, 2022/11/24
- [bug#49946] [PATCH v7 08/32] gnu: Add tree-sitter-cpp., Pierre Langlois, 2022/11/24
- [bug#49946] [PATCH v7 10/32] gnu: Add tree-sitter-css., Pierre Langlois, 2022/11/24
- [bug#49946] [PATCH v7 07/32] gnu: Add tree-sitter-c., Pierre Langlois, 2022/11/24
- [bug#49946] [PATCH v7 05/32] gnu: Add tree-sitter-cli., Pierre Langlois, 2022/11/24
- [bug#49946] [PATCH v7 13/32] gnu: Add tree-sitter-elm., Pierre Langlois, 2022/11/24
- [bug#49946] [PATCH v7 14/32] gnu: Add tree-sitter-go., Pierre Langlois, 2022/11/24
- [bug#49946] [PATCH v7 15/32] gnu: Add tree-sitter-haskell., Pierre Langlois, 2022/11/24
- [bug#49946] [PATCH v7 11/32] gnu: Add tree-sitter-c-sharp., Pierre Langlois, 2022/11/24