initial commit
This commit is contained in:
commit
42f31b0dcb
218 changed files with 190123 additions and 0 deletions
1
tree-sitter-ini/.gitignore
vendored
Normal file
1
tree-sitter-ini/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
node_modules/
|
71
tree-sitter-ini/Cargo.lock
generated
Normal file
71
tree-sitter-ini/Cargo.lock
generated
Normal file
|
@ -0,0 +1,71 @@
|
|||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "aho-corasick"
|
||||
version = "1.1.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"
|
||||
dependencies = [
|
||||
"memchr",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cc"
|
||||
version = "1.0.98"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "41c270e7540d725e65ac7f1b212ac8ce349719624d7bcff99f8e2e488e8cf03f"
|
||||
|
||||
[[package]]
|
||||
name = "memchr"
|
||||
version = "2.7.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d"
|
||||
|
||||
[[package]]
|
||||
name = "regex"
|
||||
version = "1.10.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c"
|
||||
dependencies = [
|
||||
"aho-corasick",
|
||||
"memchr",
|
||||
"regex-automata",
|
||||
"regex-syntax",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "regex-automata"
|
||||
version = "0.4.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea"
|
||||
dependencies = [
|
||||
"aho-corasick",
|
||||
"memchr",
|
||||
"regex-syntax",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "regex-syntax"
|
||||
version = "0.8.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56"
|
||||
|
||||
[[package]]
|
||||
name = "tree-sitter"
|
||||
version = "0.20.10"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e747b1f9b7b931ed39a548c1fae149101497de3c1fc8d9e18c62c1a66c683d3d"
|
||||
dependencies = [
|
||||
"cc",
|
||||
"regex",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tree-sitter-ini"
|
||||
version = "0.0.1"
|
||||
dependencies = [
|
||||
"cc",
|
||||
"tree-sitter",
|
||||
]
|
26
tree-sitter-ini/Cargo.toml
Normal file
26
tree-sitter-ini/Cargo.toml
Normal file
|
@ -0,0 +1,26 @@
|
|||
[package]
|
||||
name = "tree-sitter-ini"
|
||||
description = "ini grammar for the tree-sitter parsing library"
|
||||
version = "0.0.1"
|
||||
keywords = ["incremental", "parsing", "ini"]
|
||||
categories = ["parsing", "text-editors"]
|
||||
repository = "https://github.com/tree-sitter/tree-sitter-ini"
|
||||
edition = "2018"
|
||||
license = "MIT"
|
||||
|
||||
build = "bindings/rust/build.rs"
|
||||
include = [
|
||||
"bindings/rust/*",
|
||||
"grammar.js",
|
||||
"queries/*",
|
||||
"src/*",
|
||||
]
|
||||
|
||||
[lib]
|
||||
path = "bindings/rust/lib.rs"
|
||||
|
||||
[dependencies]
|
||||
tree-sitter = "~0.20.3"
|
||||
|
||||
[build-dependencies]
|
||||
cc = "1.0"
|
201
tree-sitter-ini/LICENSE
Normal file
201
tree-sitter-ini/LICENSE
Normal file
|
@ -0,0 +1,201 @@
|
|||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
55
tree-sitter-ini/README.md
Normal file
55
tree-sitter-ini/README.md
Normal file
|
@ -0,0 +1,55 @@
|
|||
tree-sitter-ini
|
||||
==================
|
||||
|
||||
This grammar implements the INI format.
|
||||
|
||||
Overview
|
||||
--------
|
||||
|
||||
Example INI file:
|
||||
|
||||
[section name]
|
||||
some_key = some_value
|
||||
another-key = another value
|
||||
|
||||
[another section]
|
||||
# a comment
|
||||
some_key = some_value
|
||||
another-key = another value
|
||||
|
||||
See [test/corpus/](./test/corpus/) for more examples.
|
||||
|
||||
### Notes
|
||||
|
||||
- Comments must start at column 1. Trailing comments are not supported. (Should they be?)
|
||||
|
||||
Known issues
|
||||
------------
|
||||
|
||||
- `setting_value` [includes whitespace](https://github.com/justinmk/tree-sitter-ini/issues/3).
|
||||
Should values exclude surrounding whitespace?
|
||||
|
||||
Reference
|
||||
---------
|
||||
|
||||
- https://github.com/textmate/ini.tmbundle
|
||||
|
||||
Release
|
||||
-------
|
||||
|
||||
Steps to perform a release:
|
||||
|
||||
1. Bump and tag the version (choose `patch`/`minor`/`major` as appropriate).
|
||||
```
|
||||
npm version patch -m "release %s"
|
||||
```
|
||||
2. Bump to prerelease, without creating a tag .
|
||||
```
|
||||
npm version --no-git-tag-version prerelease --preid dev && git add package*.json && git commit -m bump
|
||||
```
|
||||
3. Push.
|
||||
```
|
||||
git push --follow-tags
|
||||
```
|
||||
4. Release the tagged commit: https://github.com/justinmk/tree-sitter-ini/releases/new
|
||||
|
19
tree-sitter-ini/binding.gyp
Normal file
19
tree-sitter-ini/binding.gyp
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"targets": [
|
||||
{
|
||||
"target_name": "tree_sitter_ini_binding",
|
||||
"include_dirs": [
|
||||
"<!(node -e \"require('nan')\")",
|
||||
"src"
|
||||
],
|
||||
"sources": [
|
||||
"bindings/node/binding.cc",
|
||||
"src/parser.c",
|
||||
# If your language uses an external scanner, add it here.
|
||||
],
|
||||
"cflags_c": [
|
||||
"-std=c99",
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
28
tree-sitter-ini/bindings/node/binding.cc
Normal file
28
tree-sitter-ini/bindings/node/binding.cc
Normal file
|
@ -0,0 +1,28 @@
|
|||
#include "tree_sitter/parser.h"
|
||||
#include <node.h>
|
||||
#include "nan.h"
|
||||
|
||||
using namespace v8;
|
||||
|
||||
extern "C" TSLanguage * tree_sitter_ini();
|
||||
|
||||
namespace {
|
||||
|
||||
NAN_METHOD(New) {}
|
||||
|
||||
void Init(Local<Object> exports, Local<Object> module) {
|
||||
Local<FunctionTemplate> tpl = Nan::New<FunctionTemplate>(New);
|
||||
tpl->SetClassName(Nan::New("Language").ToLocalChecked());
|
||||
tpl->InstanceTemplate()->SetInternalFieldCount(1);
|
||||
|
||||
Local<Function> constructor = Nan::GetFunction(tpl).ToLocalChecked();
|
||||
Local<Object> instance = constructor->NewInstance(Nan::GetCurrentContext()).ToLocalChecked();
|
||||
Nan::SetInternalFieldPointer(instance, 0, tree_sitter_ini());
|
||||
|
||||
Nan::Set(instance, Nan::New("name").ToLocalChecked(), Nan::New("ini").ToLocalChecked());
|
||||
Nan::Set(module, Nan::New("exports").ToLocalChecked(), instance);
|
||||
}
|
||||
|
||||
NODE_MODULE(tree_sitter_ini_binding, Init)
|
||||
|
||||
} // namespace
|
19
tree-sitter-ini/bindings/node/index.js
Normal file
19
tree-sitter-ini/bindings/node/index.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
try {
|
||||
module.exports = require("../../build/Release/tree_sitter_ini_binding");
|
||||
} catch (error1) {
|
||||
if (error1.code !== 'MODULE_NOT_FOUND') {
|
||||
throw error1;
|
||||
}
|
||||
try {
|
||||
module.exports = require("../../build/Debug/tree_sitter_ini_binding");
|
||||
} catch (error2) {
|
||||
if (error2.code !== 'MODULE_NOT_FOUND') {
|
||||
throw error2;
|
||||
}
|
||||
throw error1
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
module.exports.nodeTypeInfo = require("../../src/node-types.json");
|
||||
} catch (_) {}
|
40
tree-sitter-ini/bindings/rust/build.rs
Normal file
40
tree-sitter-ini/bindings/rust/build.rs
Normal file
|
@ -0,0 +1,40 @@
|
|||
fn main() {
|
||||
let src_dir = std::path::Path::new("src");
|
||||
|
||||
let mut c_config = cc::Build::new();
|
||||
c_config.include(&src_dir);
|
||||
c_config
|
||||
.flag_if_supported("-Wno-unused-parameter")
|
||||
.flag_if_supported("-Wno-unused-but-set-variable")
|
||||
.flag_if_supported("-Wno-trigraphs");
|
||||
let parser_path = src_dir.join("parser.c");
|
||||
c_config.file(&parser_path);
|
||||
|
||||
// If your language uses an external scanner written in C,
|
||||
// then include this block of code:
|
||||
|
||||
/*
|
||||
let scanner_path = src_dir.join("scanner.c");
|
||||
c_config.file(&scanner_path);
|
||||
println!("cargo:rerun-if-changed={}", scanner_path.to_str().unwrap());
|
||||
*/
|
||||
|
||||
c_config.compile("parser");
|
||||
println!("cargo:rerun-if-changed={}", parser_path.to_str().unwrap());
|
||||
|
||||
// If your language uses an external scanner written in C++,
|
||||
// then include this block of code:
|
||||
|
||||
/*
|
||||
let mut cpp_config = cc::Build::new();
|
||||
cpp_config.cpp(true);
|
||||
cpp_config.include(&src_dir);
|
||||
cpp_config
|
||||
.flag_if_supported("-Wno-unused-parameter")
|
||||
.flag_if_supported("-Wno-unused-but-set-variable");
|
||||
let scanner_path = src_dir.join("scanner.cc");
|
||||
cpp_config.file(&scanner_path);
|
||||
cpp_config.compile("scanner");
|
||||
println!("cargo:rerun-if-changed={}", scanner_path.to_str().unwrap());
|
||||
*/
|
||||
}
|
52
tree-sitter-ini/bindings/rust/lib.rs
Normal file
52
tree-sitter-ini/bindings/rust/lib.rs
Normal file
|
@ -0,0 +1,52 @@
|
|||
//! This crate provides ini language support for the [tree-sitter][] parsing library.
|
||||
//!
|
||||
//! Typically, you will use the [language][language func] function to add this language to a
|
||||
//! tree-sitter [Parser][], and then use the parser to parse some code:
|
||||
//!
|
||||
//! ```
|
||||
//! let code = "";
|
||||
//! let mut parser = tree_sitter::Parser::new();
|
||||
//! parser.set_language(tree_sitter_ini::language()).expect("Error loading ini grammar");
|
||||
//! let tree = parser.parse(code, None).unwrap();
|
||||
//! ```
|
||||
//!
|
||||
//! [Language]: https://docs.rs/tree-sitter/*/tree_sitter/struct.Language.html
|
||||
//! [language func]: fn.language.html
|
||||
//! [Parser]: https://docs.rs/tree-sitter/*/tree_sitter/struct.Parser.html
|
||||
//! [tree-sitter]: https://tree-sitter.github.io/
|
||||
|
||||
use tree_sitter::Language;
|
||||
|
||||
extern "C" {
|
||||
fn tree_sitter_ini() -> Language;
|
||||
}
|
||||
|
||||
/// Get the tree-sitter [Language][] for this grammar.
|
||||
///
|
||||
/// [Language]: https://docs.rs/tree-sitter/*/tree_sitter/struct.Language.html
|
||||
pub fn language() -> Language {
|
||||
unsafe { tree_sitter_ini() }
|
||||
}
|
||||
|
||||
/// The content of the [`node-types.json`][] file for this grammar.
|
||||
///
|
||||
/// [`node-types.json`]: https://tree-sitter.github.io/tree-sitter/using-parsers#static-node-types
|
||||
pub const NODE_TYPES: &'static str = include_str!("../../src/node-types.json");
|
||||
|
||||
// Uncomment these to include any queries that this grammar contains
|
||||
|
||||
// pub const HIGHLIGHTS_QUERY: &'static str = include_str!("../../queries/highlights.scm");
|
||||
// pub const INJECTIONS_QUERY: &'static str = include_str!("../../queries/injections.scm");
|
||||
// pub const LOCALS_QUERY: &'static str = include_str!("../../queries/locals.scm");
|
||||
// pub const TAGS_QUERY: &'static str = include_str!("../../queries/tags.scm");
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[test]
|
||||
fn test_can_load_grammar() {
|
||||
let mut parser = tree_sitter::Parser::new();
|
||||
parser
|
||||
.set_language(super::language())
|
||||
.expect("Error loading ini language");
|
||||
}
|
||||
}
|
46
tree-sitter-ini/grammar.js
Normal file
46
tree-sitter-ini/grammar.js
Normal file
|
@ -0,0 +1,46 @@
|
|||
m/odule.exports = grammar({
|
||||
name: 'ini',
|
||||
|
||||
extras: $ => [
|
||||
$.comment,
|
||||
$._blank,
|
||||
/[\t ]/
|
||||
],
|
||||
|
||||
rules: {
|
||||
document: $ => seq(
|
||||
repeat($._blank), // Eat blank lines at top of file.
|
||||
repeat($.section),
|
||||
),
|
||||
|
||||
// Section has:
|
||||
// - a title
|
||||
// - zero or more settings (name=value pairs)
|
||||
section: $ => prec.left(seq(
|
||||
$.section_name,
|
||||
repeat(seq(
|
||||
$.setting,
|
||||
)),
|
||||
)),
|
||||
|
||||
section_name: $ => seq(
|
||||
'[',
|
||||
alias(/[^\[\]\n]+/, $.text),
|
||||
']',
|
||||
'\n',
|
||||
),
|
||||
|
||||
setting: $ => seq(
|
||||
alias(/[^;#=\s\[]+/, $.setting_name),
|
||||
'=',
|
||||
alias(/.+/, $.setting_value),
|
||||
'\n',
|
||||
),
|
||||
|
||||
// setting_name: () => /[^#=\s\[]+/,
|
||||
// setting_value: () => /[^#\n]+/,
|
||||
comment: $ => seq(/[;#]/, alias(/.*/, $.text), '\n'),
|
||||
|
||||
_blank: () => field('blank', '\n'),
|
||||
}
|
||||
});
|
448
tree-sitter-ini/notes.md
Normal file
448
tree-sitter-ini/notes.md
Normal file
|
@ -0,0 +1,448 @@
|
|||
# treesitter ini, aws-config
|
||||
|
||||
This is a tree-sitter experience report.
|
||||
|
||||
## Why treesitter?
|
||||
|
||||
> Tree-sitter uses context-aware tokenization - in a given parse state,
|
||||
> Tree-sitter only recognizes tokens that are syntactically valid in that
|
||||
> state. This is what allows Tree-sitter to tokenize languages correctly
|
||||
> without requiring the grammar author to think about different lexer modes.
|
||||
— [ref](https://github.com/tree-sitter/tree-sitter/pull/1635)
|
||||
|
||||
tree-sitter has nice docs to walkthrough this: https://tree-sitter.github.io/tree-sitter/creating-parsers
|
||||
|
||||
https://siraben.dev/2022/03/01/tree-sitter.html is another good tutorial and provides some motivation for treesitter:
|
||||
|
||||
## Experience report
|
||||
|
||||
"tree-sitter" should be named "treesitter". There is zero reason to choose a multi-word name if you can avoid it. Multi-word names manifest in various forms depending on the context: "treeSitter", "TreeSitter", "tree_sitter", "tree-sitter". This is worthless entropy.
|
||||
|
||||
Here's the C code for an `.ini` parser generated by tree-sitter. It has an API
|
||||
exposed as a C dynamic library, usable from any language. How did I do this? See below.
|
||||
|
||||
#include <tree_sitter/parser.h>
|
||||
…
|
||||
enum {
|
||||
…
|
||||
sym_setting_name = 6,
|
||||
sym_setting_value = 7,
|
||||
…
|
||||
};
|
||||
static const char *ts_symbol_names[] = {
|
||||
[sym_setting_name] = "setting_name",
|
||||
[sym_setting_value] = "setting_value",
|
||||
…
|
||||
};
|
||||
static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
||||
START_LEXER();
|
||||
eof = lexer->eof(lexer);
|
||||
switch (state) {
|
||||
case 0:
|
||||
…
|
||||
END_STATE();
|
||||
…
|
||||
case 8:
|
||||
ACCEPT_TOKEN(aux_sym_section_name_token1);
|
||||
if (lookahead == '\n') ADVANCE(10);
|
||||
if (lookahead == '[' ||
|
||||
lookahead == ']') ADVANCE(19);
|
||||
if (lookahead != 0) ADVANCE(8);
|
||||
END_STATE();
|
||||
…
|
||||
case 14:
|
||||
ACCEPT_TOKEN(sym_setting_name);
|
||||
if (lookahead == '\n') ADVANCE(16);
|
||||
if (lookahead == '=') ADVANCE(19);
|
||||
if (lookahead != 0) ADVANCE(14);
|
||||
END_STATE();
|
||||
…
|
||||
}
|
||||
}
|
||||
static uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = {
|
||||
[0] = {
|
||||
…
|
||||
},
|
||||
[1] = {
|
||||
…
|
||||
[sym_section] = STATE(3),
|
||||
[sym_section_name] = STATE(2),
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Creating a new parser for the INI file type
|
||||
-------------------------------------------
|
||||
|
||||
$ npm init
|
||||
|
||||
# Install a small module that lets your parser be used from Node.
|
||||
$ npm install --save nan
|
||||
|
||||
# Install (and depend-on) the Tree-sitter CLI.
|
||||
$ npm install --save-dev tree-sitter-cli
|
||||
|
||||
Create the grammar.js stub
|
||||
--------------------------
|
||||
|
||||
`grammar.js`:
|
||||
|
||||
module.exports = grammar({
|
||||
name: 'ini',
|
||||
rules: {
|
||||
// TODO: add the actual grammar rules
|
||||
source_file: $ => 'hello'
|
||||
}
|
||||
});
|
||||
|
||||
Generate the parser
|
||||
-------------------
|
||||
|
||||
$ ./node_modules/.bin/tree-sitter generate
|
||||
|
||||
That generates `src/parser.c` from the `grammar.js` that we defined (typically
|
||||
tree-sitter projects put this in their `npm run build` script in
|
||||
`package.json`). The parser can be tested now:
|
||||
|
||||
$ echo hello > test
|
||||
$ ./node_modules/.bin/tree-sitter parse test
|
||||
(source_file [0, 0] - [1, 0])
|
||||
|
||||
It also generates some glue files to compile the parser's C source a library
|
||||
and load it as a Node.js module. Cool!
|
||||
|
||||
- `binding.gyp` tells Node.js how to compile the parser's C source.
|
||||
- `tree-sitter generate` automatically compiles `parser.c` into
|
||||
a dynamically-loadable library.
|
||||
- `index.js` is the entrypoint for Node.js to load the compiled C module.
|
||||
- `src/binding.cc` wraps your parser in a JavaScript object for Node.js
|
||||
- `src/tree_sitter/parser.h` is a C header by `parser.c`.
|
||||
|
||||
Tree-sitter will detect ambiguity. For example this `grammar.js` is ambiguous:
|
||||
|
||||
module.exports = grammar({
|
||||
name: 'ini',
|
||||
rules: {
|
||||
document: $ => $._value,
|
||||
_value: $ => choice(
|
||||
$.a,
|
||||
$.b,
|
||||
),
|
||||
a: $ => 'hello',
|
||||
b: $ => 'hello'
|
||||
}
|
||||
});
|
||||
|
||||
Tree-sitter throws a `Unresolved conflict` error when it detects ambiguity:
|
||||
|
||||
$ ./node_modules/.bin/tree-sitter generate
|
||||
|
||||
Unresolved conflict for symbol sequence:
|
||||
|
||||
'hello' • EOF …
|
||||
|
||||
Possible interpretations:
|
||||
|
||||
1: (a 'hello') • EOF …
|
||||
2: (b 'hello') • EOF …
|
||||
|
||||
Possible resolutions:
|
||||
|
||||
1: Specify a higher precedence in `a` than in the other rules.
|
||||
2: Specify a higher precedence in `b` than in the other rules.
|
||||
3: Add a conflict for these rules: `a`, `b`
|
||||
|
||||
Developing the grammar, part 1
|
||||
------------------------------
|
||||
|
||||
One of my favorite things about tree-sitter is its use of S-expressions
|
||||
("sexps") to **define test-cases** and **pretty-print** the AST. S-expressions
|
||||
are the human-readable representation of the AST. They are similar to
|
||||
HTML/XML/SGML (but simpler and older): just a very simple way to express a tree
|
||||
of things.
|
||||
|
||||
Here's the first test for my "ini" grammar:
|
||||
|
||||
==================
|
||||
Test 1
|
||||
==================
|
||||
|
||||
foo = bar
|
||||
|
||||
---
|
||||
|
||||
()
|
||||
|
||||
It fails:
|
||||
|
||||
$ ./node_modules/.bin/tree-sitter test
|
||||
main:
|
||||
✗ Test 1
|
||||
|
||||
1 failure:
|
||||
|
||||
expected / actual
|
||||
|
||||
1. Test 1:
|
||||
(ERROR (UNEXPECTED 'f')) ()
|
||||
(ERROR (UNEXPECTED 'f')) ()
|
||||
|
||||
Now I can start developing the grammar. Tree-sitter provides
|
||||
a [DSL](https://tree-sitter.github.io/tree-sitter/creating-parsers#the-grammar-dsl)
|
||||
to define grammars.
|
||||
|
||||
- `name`: Name of the grammar.
|
||||
- `rules`:
|
||||
- Symbols (the `$` object): Use `$.foo` to another grammar symbol within a rule.
|
||||
- String and Regex literals: terminal symbols.
|
||||
- Sequences: `seq(rule1, rule2, …)`: matches rules in the given order.
|
||||
- Alternatives: `choice(rule1, rule2, …)`: matches any one rule in the set.
|
||||
- Repetitions: `repeat(rule)` matches _zero-or-more_ rules.
|
||||
- `repeat1(rule)` matches _one-or-more_ rules.
|
||||
- `optional(rule)` matches _zero-or-one_ rule.
|
||||
- Precedence: `prec(number, rule)` marks a rule with a precedence to resolve
|
||||
ambiguities ("LR(1) conflicts")
|
||||
- `prec.left([number], rule)` marks a rule as _left-associative_, i.e.
|
||||
prefers a match that ends _earlier_.
|
||||
- `prec.right([number], rule)` prefers a match that ends _later_.
|
||||
- `prec.dynamic(number, rule)` decides precedence at runtime! Uses the
|
||||
`conflicts` field in the grammar, when there is a "genuine ambiguity"
|
||||
(multiple matching rules).
|
||||
- `token(rule)` marks a rule as producing a single token; the entire rule
|
||||
subtree will be handled atomically by the lexer, as if you had written it
|
||||
all using a single regular expression.
|
||||
- Its content will be represented in the final syntax tree as a single leaf node.
|
||||
(Whereas If you don't use TOKEN, there will be a separate leaf node in
|
||||
the tree for each string literal or regexp in the subtree.)
|
||||
- `alias(rule, name)` renames a rule in the AST.
|
||||
- Example: `alias($.foo, $.bar)` appears as _named_ node `bar`
|
||||
- Example: `alias($.foo, 'bar')` appears as _anonymous_ node "bar".
|
||||
- `field(name, rule)` assigns a _field name_ to the matching child nodes, which
|
||||
can be used to access the nodes from the AST.
|
||||
- `extras`: array of tokens that may appear _anywhere_. Often used for
|
||||
whitespace and comments. Example (also the default!):
|
||||
```
|
||||
extras: $ => [
|
||||
/\s/
|
||||
],
|
||||
```
|
||||
- `inline`: useful for rules used in multiple places but for which you don’t
|
||||
want AST nodes.
|
||||
- `conflicts`: defines _intentional_ ambiguities (LR(1) conflicts), which
|
||||
tree-sitter will resolve at _runtime_ (dynamic precedence).
|
||||
- `externals`: token names which can be returned by an external scanner.
|
||||
Allows you to write custom C code which runs during the lexing process to
|
||||
handle non-regular lexical rules (e.g. Python indentation).
|
||||
- `word`: matches keywords for keyword extraction optimization.
|
||||
- `supertypes`: hidden rules considered to be ‘supertypes’ in the generated
|
||||
_node types_ file (useful for statically-typed languages)
|
||||
|
||||
Reading about `seq()` gives me enough to try a toy rule for the "ini" grammar:
|
||||
|
||||
- `grammar.js`:
|
||||
```
|
||||
module.exports = grammar({
|
||||
name: 'ini',
|
||||
rules: {
|
||||
document: $ => $._value,
|
||||
_value: $ => choice(
|
||||
$.kvpair,
|
||||
),
|
||||
kvpair: $ => seq(
|
||||
/[^=]+/, '=', /.+/
|
||||
),
|
||||
}
|
||||
});
|
||||
```
|
||||
- `test/corpus/main.txt`:
|
||||
```
|
||||
==================
|
||||
Test 1
|
||||
==================
|
||||
|
||||
foo = bar
|
||||
|
||||
---
|
||||
|
||||
(document (kvpair))
|
||||
```
|
||||
|
||||
The test passes...
|
||||
|
||||
$ ./node_modules/.bin/tree-sitter generate && ./node_modules/.bin/tree-sitter test
|
||||
main:
|
||||
✓ Test 1
|
||||
|
||||
...but this initial grammar lacks granularity: it doesn't parse the individual
|
||||
parts of `kvpair`, i.e. we probably want "key" and "value". And it feels wrong
|
||||
to use regex to exclude "=", that will probably be avoided more "formally" in
|
||||
the final grammar.
|
||||
|
||||
In fact [this section](https://tree-sitter.github.io/tree-sitter/creating-parsers#writing-the-grammar)
|
||||
of the docs mentions two properties to write a good parser:
|
||||
|
||||
1. _Intuitive structure._ Because the grammar directly influences the structure
|
||||
of the AST!
|
||||
2. _Adherence to LR(1)._ For optimal performance.
|
||||
|
||||
Developing the grammar, part 2
|
||||
------------------------------
|
||||
|
||||
Now that I have a toy grammar feeding into a passing test, I am ready to experiment.
|
||||
|
||||
- I see [tree-sitter-json grammar](https://github.com/tree-sitter/tree-sitter-json/blob/d3976b27df8622ed17bef6dd5e358b398e73c676/grammar.js#L54)
|
||||
combines `seq(optional(choice(…)))` in a rule--even assigning rules to local
|
||||
variables--and return a single rule via `return token(…)`.
|
||||
- I see that [tree-sitter-javascript](https://github.com/tree-sitter/tree-sitter-javascript/blob/a2e3d72f82716a20982ecc06c349c54ec40d54df/grammar.js#L35)
|
||||
includes comments in its `extra` directive.
|
||||
|
||||
ini files are very simple:
|
||||
|
||||
- they have three parts: section, settings, and comments
|
||||
```
|
||||
[section 1]
|
||||
a = val1
|
||||
b = val2
|
||||
# comment
|
||||
```
|
||||
- a section might not have any "content", only a title:
|
||||
```
|
||||
[section 1]
|
||||
```
|
||||
|
||||
From there I'm able to introduce a `setting` rule, and define `section` in
|
||||
terms of `section_name` and `setting`.
|
||||
|
||||
module.exports = grammar({
|
||||
name: 'ini',
|
||||
extras: $ => [
|
||||
$.comment,
|
||||
/\s/,
|
||||
],
|
||||
rules: {
|
||||
document: $ => repeat(
|
||||
$.section
|
||||
),
|
||||
|
||||
section: $ => {
|
||||
return seq(
|
||||
// Section must have a name.
|
||||
$.section_name,
|
||||
// Section has zero or more settings (name=value pairs).
|
||||
repeat($.setting),
|
||||
)
|
||||
},
|
||||
section_name: $ => seq(
|
||||
'[',
|
||||
/[^\[\]]+/,
|
||||
']',
|
||||
'\n', // Section name must be on its own line.
|
||||
),
|
||||
setting: $ => seq(
|
||||
$.setting_name,
|
||||
'=',
|
||||
$.setting_value,
|
||||
'\n', // Only one setting per line.
|
||||
),
|
||||
setting_name: $ => /[^=]+/,
|
||||
setting_value: $ => /.+/,
|
||||
|
||||
comment: $ => token(
|
||||
seq('#', /.*/),
|
||||
),
|
||||
}
|
||||
});
|
||||
|
||||
That passes this updated test:
|
||||
|
||||
==================
|
||||
Test 1
|
||||
==================
|
||||
|
||||
[a section title]
|
||||
foo = bar
|
||||
|
||||
---
|
||||
|
||||
(document
|
||||
(section
|
||||
(section_name)
|
||||
(setting (setting_name) (setting_value))))
|
||||
|
||||
# Actually use it!
|
||||
|
||||
Now we can actually parse stuff! Such as [this AWS config example](https://docs.aws.amazon.com/credref/latest/refdocs/file-format.html):
|
||||
|
||||
File `test-awsconfig`:
|
||||
|
||||
[default]
|
||||
region = us-west-2
|
||||
output = json
|
||||
|
||||
[profile dev-user]
|
||||
region = us-east-1
|
||||
output = text
|
||||
|
||||
[profile developers]
|
||||
role_arn = arn:aws:iam::123456789012:role/developers
|
||||
source_profile = dev-user
|
||||
region = us-west-2
|
||||
output = json
|
||||
|
||||
Parse it:
|
||||
|
||||
$ ./node_modules/.bin/tree-sitter parse test-awsconfig
|
||||
(document [0, 0] - [13, 0]
|
||||
(section [0, 0] - [13, 0]
|
||||
(section_name [0, 0] - [1, 0])
|
||||
(setting [1, 0] - [2, 0]
|
||||
(setting_name [1, 0] - [1, 7])
|
||||
(setting_value [1, 8] - [1, 18]))
|
||||
(setting [2, 0] - [4, 0]
|
||||
(setting_name [2, 0] - [2, 7])
|
||||
(setting_value [2, 8] - [2, 13]))
|
||||
(setting [4, 0] - [6, 0]
|
||||
(setting_name [4, 0] - [5, 7])
|
||||
(setting_value [5, 8] - [5, 18]))
|
||||
(setting [6, 0] - [8, 0]
|
||||
(setting_name [6, 0] - [6, 7])
|
||||
(setting_value [6, 8] - [6, 13]))
|
||||
(setting [8, 0] - [10, 0]
|
||||
(setting_name [8, 0] - [9, 9])
|
||||
(setting_value [9, 10] - [9, 52]))
|
||||
(setting [10, 0] - [11, 0]
|
||||
(setting_name [10, 0] - [10, 15])
|
||||
(setting_value [10, 16] - [10, 25]))
|
||||
(setting [11, 0] - [12, 0]
|
||||
(setting_name [11, 0] - [11, 7])
|
||||
(setting_value [11, 8] - [11, 18]))
|
||||
(setting [12, 0] - [13, 0]
|
||||
(setting_name [12, 0] - [12, 7])
|
||||
(setting_value [12, 8] - [12, 13]))))
|
||||
|
||||
# Error handling
|
||||
|
||||
One of the most valuable features of a parser-generator is its ability to flag
|
||||
errors and report _where_ the error occurred in the source code.
|
||||
|
||||
An ini file without a section heading is an error.
|
||||
|
||||
foo = bar
|
||||
|
||||
$ ./node_modules/.bin/tree-sitter parse test-awsconfig
|
||||
(document [0, 0] - [1, 0]
|
||||
(ERROR [0, 0] - [0, 9]
|
||||
(ERROR [0, 0] - [0, 3])
|
||||
(ERROR [0, 6] - [0, 9])))
|
||||
|
||||
# Preventing duplicate symbols
|
||||
|
||||
From an [early tree-sitter discussion](https://github.com/tree-sitter/tree-sitter/issues/130#issuecomment-364830185), author Max Brunsfeld:
|
||||
|
||||
> Thus far, I don't really consider "type II correctness" to be a goal for Tree-sitter, because I think it's fundamentally incompatible with one of the most important goals of the project: to be able to parse source code files based solely on their language, without knowing any auxiliary information about the files.
|
||||
>
|
||||
> For example, tree-sitter-python should be able to parse any python code you can find, without knowing what python version the code is meant to run on. That means it needs to parse the union of Python 2 and Python 3.
|
||||
|
||||
# Capturing whitespace
|
||||
|
||||
Whitespace will be included in _all_ nodes if you have _any_ `$.word` node that captures leading whitespace.
|
19
tree-sitter-ini/package-lock.json
generated
Normal file
19
tree-sitter-ini/package-lock.json
generated
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"name": "tree-sitter-ini",
|
||||
"version": "1.1.2-dev.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
"nan": {
|
||||
"version": "2.14.1",
|
||||
"resolved": "https://registry.npmjs.org/nan/-/nan-2.14.1.tgz",
|
||||
"integrity": "sha512-isWHgVjnFjh2x2yuJ/tj3JbwoHu3UC2dX5G/88Cm24yB6YopVgxvBObDY7n5xW6ExmFhJpSEQqFPvq9zaXc8Jw=="
|
||||
},
|
||||
"tree-sitter-cli": {
|
||||
"version": "0.16.9",
|
||||
"resolved": "https://registry.npmjs.org/tree-sitter-cli/-/tree-sitter-cli-0.16.9.tgz",
|
||||
"integrity": "sha512-Aguz2Ns7qG6t71MP9odhh4t9q3+f29BAmZq8XsTDMtoi5o/e9k+Umeqz6brNngCAz3vMBl1OX95ozdnYzhJWIA==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
}
|
39
tree-sitter-ini/package.json
Normal file
39
tree-sitter-ini/package.json
Normal file
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
"name": "tree-sitter-ini",
|
||||
"version": "1.1.2-dev.0",
|
||||
"description": "INI grammar for tree-sitter",
|
||||
"main": "bindings/node",
|
||||
"scripts": {
|
||||
"test": "tree-sitter test"
|
||||
},
|
||||
"keywords": [
|
||||
"tree-sitter",
|
||||
"parser",
|
||||
"ini"
|
||||
],
|
||||
"files": [
|
||||
"grammar.js",
|
||||
"binding.gyp",
|
||||
"bindings/node/*",
|
||||
"queries/**",
|
||||
"src/**"
|
||||
],
|
||||
"author": "Justin M. Keyes",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"nan": "^2.17.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"tree-sitter-cli": "^0.20.7"
|
||||
},
|
||||
"tree-sitter": [
|
||||
{
|
||||
"scope": "source.ini",
|
||||
"highlights": "queries/highlights.scm",
|
||||
"file-types": [
|
||||
"ini"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
1
tree-sitter-ini/queries/folds.scm
Normal file
1
tree-sitter-ini/queries/folds.scm
Normal file
|
@ -0,0 +1 @@
|
|||
(section) @fold
|
16
tree-sitter-ini/queries/highlights.scm
Normal file
16
tree-sitter-ini/queries/highlights.scm
Normal file
|
@ -0,0 +1,16 @@
|
|||
(section_name
|
||||
(text) @type) ; consistency with toml
|
||||
|
||||
(comment) @comment @spell
|
||||
|
||||
[
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
|
||||
"=" @operator
|
||||
|
||||
(setting
|
||||
(setting_name) @property)
|
||||
|
||||
; (setting_value) @none ; grammar does not support subtypes
|
156
tree-sitter-ini/src/grammar.json
Normal file
156
tree-sitter-ini/src/grammar.json
Normal file
|
@ -0,0 +1,156 @@
|
|||
{
|
||||
"name": "ini",
|
||||
"rules": {
|
||||
"document": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "REPEAT",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "_blank"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "REPEAT",
|
||||
"content": {
|
||||
"type": "SYMBOL",
|
||||
"name": "section"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"section": {
|
||||
"type": "PREC_LEFT",
|
||||
"value": 0,
|
||||
"content": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "section_name"
|
||||
},
|
||||
{
|
||||
"type": "REPEAT",
|
||||
"content": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "setting"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"section_name": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "["
|
||||
},
|
||||
{
|
||||
"type": "ALIAS",
|
||||
"content": {
|
||||
"type": "PATTERN",
|
||||
"value": "[^\\[\\]\\n]+"
|
||||
},
|
||||
"named": true,
|
||||
"value": "text"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "]"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "\n"
|
||||
}
|
||||
]
|
||||
},
|
||||
"setting": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "ALIAS",
|
||||
"content": {
|
||||
"type": "PATTERN",
|
||||
"value": "[^;#=\\s\\[]+"
|
||||
},
|
||||
"named": true,
|
||||
"value": "setting_name"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "="
|
||||
},
|
||||
{
|
||||
"type": "ALIAS",
|
||||
"content": {
|
||||
"type": "PATTERN",
|
||||
"value": ".+"
|
||||
},
|
||||
"named": true,
|
||||
"value": "setting_value"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "\n"
|
||||
}
|
||||
]
|
||||
},
|
||||
"comment": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
{
|
||||
"type": "PATTERN",
|
||||
"value": "[;#]"
|
||||
},
|
||||
{
|
||||
"type": "ALIAS",
|
||||
"content": {
|
||||
"type": "PATTERN",
|
||||
"value": ".*"
|
||||
},
|
||||
"named": true,
|
||||
"value": "text"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "\n"
|
||||
}
|
||||
]
|
||||
},
|
||||
"_blank": {
|
||||
"type": "FIELD",
|
||||
"name": "blank",
|
||||
"content": {
|
||||
"type": "STRING",
|
||||
"value": "\n"
|
||||
}
|
||||
}
|
||||
},
|
||||
"extras": [
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "comment"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "_blank"
|
||||
},
|
||||
{
|
||||
"type": "PATTERN",
|
||||
"value": "[\\t ]"
|
||||
}
|
||||
],
|
||||
"conflicts": [],
|
||||
"precedences": [],
|
||||
"externals": [],
|
||||
"inline": [],
|
||||
"supertypes": []
|
||||
}
|
||||
|
124
tree-sitter-ini/src/node-types.json
Normal file
124
tree-sitter-ini/src/node-types.json
Normal file
|
@ -0,0 +1,124 @@
|
|||
[
|
||||
{
|
||||
"type": "comment",
|
||||
"named": true,
|
||||
"fields": {},
|
||||
"children": {
|
||||
"multiple": false,
|
||||
"required": true,
|
||||
"types": [
|
||||
{
|
||||
"type": "text",
|
||||
"named": true
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "document",
|
||||
"named": true,
|
||||
"fields": {
|
||||
"blank": {
|
||||
"multiple": true,
|
||||
"required": false,
|
||||
"types": [
|
||||
{
|
||||
"type": "\n",
|
||||
"named": false
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"children": {
|
||||
"multiple": true,
|
||||
"required": false,
|
||||
"types": [
|
||||
{
|
||||
"type": "section",
|
||||
"named": true
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "section",
|
||||
"named": true,
|
||||
"fields": {},
|
||||
"children": {
|
||||
"multiple": true,
|
||||
"required": true,
|
||||
"types": [
|
||||
{
|
||||
"type": "section_name",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "setting",
|
||||
"named": true
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "section_name",
|
||||
"named": true,
|
||||
"fields": {},
|
||||
"children": {
|
||||
"multiple": false,
|
||||
"required": true,
|
||||
"types": [
|
||||
{
|
||||
"type": "text",
|
||||
"named": true
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "setting",
|
||||
"named": true,
|
||||
"fields": {},
|
||||
"children": {
|
||||
"multiple": true,
|
||||
"required": true,
|
||||
"types": [
|
||||
{
|
||||
"type": "setting_name",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "setting_value",
|
||||
"named": true
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "\n",
|
||||
"named": false
|
||||
},
|
||||
{
|
||||
"type": "=",
|
||||
"named": false
|
||||
},
|
||||
{
|
||||
"type": "[",
|
||||
"named": false
|
||||
},
|
||||
{
|
||||
"type": "]",
|
||||
"named": false
|
||||
},
|
||||
{
|
||||
"type": "setting_name",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "setting_value",
|
||||
"named": true
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"named": true
|
||||
}
|
||||
]
|
815
tree-sitter-ini/src/parser.c
Normal file
815
tree-sitter-ini/src/parser.c
Normal file
|
@ -0,0 +1,815 @@
|
|||
#include <tree_sitter/parser.h>
|
||||
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
#endif
|
||||
|
||||
#define LANGUAGE_VERSION 14
|
||||
#define STATE_COUNT 26
|
||||
#define LARGE_STATE_COUNT 3
|
||||
#define SYMBOL_COUNT 19
|
||||
#define ALIAS_COUNT 0
|
||||
#define TOKEN_COUNT 10
|
||||
#define EXTERNAL_TOKEN_COUNT 0
|
||||
#define FIELD_COUNT 1
|
||||
#define MAX_ALIAS_SEQUENCE_LENGTH 4
|
||||
#define PRODUCTION_ID_COUNT 4
|
||||
|
||||
enum {
|
||||
anon_sym_LBRACK = 1,
|
||||
aux_sym_section_name_token1 = 2,
|
||||
anon_sym_RBRACK = 3,
|
||||
anon_sym_LF = 4,
|
||||
aux_sym_setting_token1 = 5,
|
||||
anon_sym_EQ = 6,
|
||||
aux_sym_setting_token2 = 7,
|
||||
aux_sym_comment_token1 = 8,
|
||||
aux_sym_comment_token2 = 9,
|
||||
sym_document = 10,
|
||||
sym_section = 11,
|
||||
sym_section_name = 12,
|
||||
sym_setting = 13,
|
||||
sym_comment = 14,
|
||||
sym__blank = 15,
|
||||
aux_sym_document_repeat1 = 16,
|
||||
aux_sym_document_repeat2 = 17,
|
||||
aux_sym_section_repeat1 = 18,
|
||||
};
|
||||
|
||||
static const char * const ts_symbol_names[] = {
|
||||
[ts_builtin_sym_end] = "end",
|
||||
[anon_sym_LBRACK] = "[",
|
||||
[aux_sym_section_name_token1] = "text",
|
||||
[anon_sym_RBRACK] = "]",
|
||||
[anon_sym_LF] = "\n",
|
||||
[aux_sym_setting_token1] = "setting_name",
|
||||
[anon_sym_EQ] = "=",
|
||||
[aux_sym_setting_token2] = "setting_value",
|
||||
[aux_sym_comment_token1] = "comment_token1",
|
||||
[aux_sym_comment_token2] = "text",
|
||||
[sym_document] = "document",
|
||||
[sym_section] = "section",
|
||||
[sym_section_name] = "section_name",
|
||||
[sym_setting] = "setting",
|
||||
[sym_comment] = "comment",
|
||||
[sym__blank] = "_blank",
|
||||
[aux_sym_document_repeat1] = "document_repeat1",
|
||||
[aux_sym_document_repeat2] = "document_repeat2",
|
||||
[aux_sym_section_repeat1] = "section_repeat1",
|
||||
};
|
||||
|
||||
static const TSSymbol ts_symbol_map[] = {
|
||||
[ts_builtin_sym_end] = ts_builtin_sym_end,
|
||||
[anon_sym_LBRACK] = anon_sym_LBRACK,
|
||||
[aux_sym_section_name_token1] = aux_sym_section_name_token1,
|
||||
[anon_sym_RBRACK] = anon_sym_RBRACK,
|
||||
[anon_sym_LF] = anon_sym_LF,
|
||||
[aux_sym_setting_token1] = aux_sym_setting_token1,
|
||||
[anon_sym_EQ] = anon_sym_EQ,
|
||||
[aux_sym_setting_token2] = aux_sym_setting_token2,
|
||||
[aux_sym_comment_token1] = aux_sym_comment_token1,
|
||||
[aux_sym_comment_token2] = aux_sym_section_name_token1,
|
||||
[sym_document] = sym_document,
|
||||
[sym_section] = sym_section,
|
||||
[sym_section_name] = sym_section_name,
|
||||
[sym_setting] = sym_setting,
|
||||
[sym_comment] = sym_comment,
|
||||
[sym__blank] = sym__blank,
|
||||
[aux_sym_document_repeat1] = aux_sym_document_repeat1,
|
||||
[aux_sym_document_repeat2] = aux_sym_document_repeat2,
|
||||
[aux_sym_section_repeat1] = aux_sym_section_repeat1,
|
||||
};
|
||||
|
||||
static const TSSymbolMetadata ts_symbol_metadata[] = {
|
||||
[ts_builtin_sym_end] = {
|
||||
.visible = false,
|
||||
.named = true,
|
||||
},
|
||||
[anon_sym_LBRACK] = {
|
||||
.visible = true,
|
||||
.named = false,
|
||||
},
|
||||
[aux_sym_section_name_token1] = {
|
||||
.visible = true,
|
||||
.named = true,
|
||||
},
|
||||
[anon_sym_RBRACK] = {
|
||||
.visible = true,
|
||||
.named = false,
|
||||
},
|
||||
[anon_sym_LF] = {
|
||||
.visible = true,
|
||||
.named = false,
|
||||
},
|
||||
[aux_sym_setting_token1] = {
|
||||
.visible = true,
|
||||
.named = true,
|
||||
},
|
||||
[anon_sym_EQ] = {
|
||||
.visible = true,
|
||||
.named = false,
|
||||
},
|
||||
[aux_sym_setting_token2] = {
|
||||
.visible = true,
|
||||
.named = true,
|
||||
},
|
||||
[aux_sym_comment_token1] = {
|
||||
.visible = false,
|
||||
.named = false,
|
||||
},
|
||||
[aux_sym_comment_token2] = {
|
||||
.visible = true,
|
||||
.named = true,
|
||||
},
|
||||
[sym_document] = {
|
||||
.visible = true,
|
||||
.named = true,
|
||||
},
|
||||
[sym_section] = {
|
||||
.visible = true,
|
||||
.named = true,
|
||||
},
|
||||
[sym_section_name] = {
|
||||
.visible = true,
|
||||
.named = true,
|
||||
},
|
||||
[sym_setting] = {
|
||||
.visible = true,
|
||||
.named = true,
|
||||
},
|
||||
[sym_comment] = {
|
||||
.visible = true,
|
||||
.named = true,
|
||||
},
|
||||
[sym__blank] = {
|
||||
.visible = false,
|
||||
.named = true,
|
||||
},
|
||||
[aux_sym_document_repeat1] = {
|
||||
.visible = false,
|
||||
.named = false,
|
||||
},
|
||||
[aux_sym_document_repeat2] = {
|
||||
.visible = false,
|
||||
.named = false,
|
||||
},
|
||||
[aux_sym_section_repeat1] = {
|
||||
.visible = false,
|
||||
.named = false,
|
||||
},
|
||||
};
|
||||
|
||||
enum {
|
||||
field_blank = 1,
|
||||
};
|
||||
|
||||
static const char * const ts_field_names[] = {
|
||||
[0] = NULL,
|
||||
[field_blank] = "blank",
|
||||
};
|
||||
|
||||
static const TSFieldMapSlice ts_field_map_slices[PRODUCTION_ID_COUNT] = {
|
||||
[1] = {.index = 0, .length = 1},
|
||||
[2] = {.index = 1, .length = 1},
|
||||
[3] = {.index = 2, .length = 2},
|
||||
};
|
||||
|
||||
static const TSFieldMapEntry ts_field_map_entries[] = {
|
||||
[0] =
|
||||
{field_blank, 0},
|
||||
[1] =
|
||||
{field_blank, 0, .inherited = true},
|
||||
[2] =
|
||||
{field_blank, 0, .inherited = true},
|
||||
{field_blank, 1, .inherited = true},
|
||||
};
|
||||
|
||||
static const TSSymbol ts_alias_sequences[PRODUCTION_ID_COUNT][MAX_ALIAS_SEQUENCE_LENGTH] = {
|
||||
[0] = {0},
|
||||
};
|
||||
|
||||
static const uint16_t ts_non_terminal_alias_map[] = {
|
||||
0,
|
||||
};
|
||||
|
||||
static const TSStateId ts_primary_state_ids[STATE_COUNT] = {
|
||||
[0] = 0,
|
||||
[1] = 1,
|
||||
[2] = 2,
|
||||
[3] = 3,
|
||||
[4] = 4,
|
||||
[5] = 5,
|
||||
[6] = 6,
|
||||
[7] = 7,
|
||||
[8] = 8,
|
||||
[9] = 9,
|
||||
[10] = 10,
|
||||
[11] = 11,
|
||||
[12] = 12,
|
||||
[13] = 13,
|
||||
[14] = 14,
|
||||
[15] = 15,
|
||||
[16] = 16,
|
||||
[17] = 17,
|
||||
[18] = 18,
|
||||
[19] = 19,
|
||||
[20] = 20,
|
||||
[21] = 21,
|
||||
[22] = 22,
|
||||
[23] = 23,
|
||||
[24] = 13,
|
||||
[25] = 25,
|
||||
};
|
||||
|
||||
static bool ts_lex(TSLexer *lexer, TSStateId state) {
|
||||
START_LEXER();
|
||||
eof = lexer->eof(lexer);
|
||||
switch (state) {
|
||||
case 0:
|
||||
if (eof) ADVANCE(5);
|
||||
if (lookahead == '\n') ADVANCE(11);
|
||||
if (lookahead == '=') ADVANCE(13);
|
||||
if (lookahead == '[') ADVANCE(6);
|
||||
if (lookahead == ']') ADVANCE(10);
|
||||
if (lookahead == '\t' ||
|
||||
lookahead == ' ') SKIP(0)
|
||||
if (lookahead == '#' ||
|
||||
lookahead == ';') ADVANCE(16);
|
||||
if (lookahead != 0 &&
|
||||
lookahead != '\r') ADVANCE(12);
|
||||
END_STATE();
|
||||
case 1:
|
||||
if (lookahead == '\n') ADVANCE(11);
|
||||
if (lookahead == ']') ADVANCE(9);
|
||||
if (lookahead == '\t' ||
|
||||
lookahead == ' ') SKIP(1)
|
||||
if (lookahead == '#' ||
|
||||
lookahead == ';') ADVANCE(16);
|
||||
END_STATE();
|
||||
case 2:
|
||||
if (lookahead == '\n') ADVANCE(11);
|
||||
if (lookahead == '\t' ||
|
||||
lookahead == ' ') ADVANCE(14);
|
||||
if (lookahead == '#' ||
|
||||
lookahead == ';') ADVANCE(15);
|
||||
if (lookahead != 0) ADVANCE(15);
|
||||
END_STATE();
|
||||
case 3:
|
||||
if (lookahead == '\n') ADVANCE(11);
|
||||
if (lookahead == '\t' ||
|
||||
lookahead == ' ') ADVANCE(7);
|
||||
if (lookahead == '#' ||
|
||||
lookahead == ';') ADVANCE(8);
|
||||
if (lookahead != 0 &&
|
||||
lookahead != '[' &&
|
||||
lookahead != ']') ADVANCE(8);
|
||||
END_STATE();
|
||||
case 4:
|
||||
if (eof) ADVANCE(5);
|
||||
if (lookahead == '\n') ADVANCE(11);
|
||||
if (lookahead == '[') ADVANCE(6);
|
||||
if (lookahead == '\t' ||
|
||||
lookahead == ' ') SKIP(4)
|
||||
if (lookahead == '#' ||
|
||||
lookahead == ';') ADVANCE(16);
|
||||
if (lookahead != 0 &&
|
||||
lookahead != '\r' &&
|
||||
lookahead != '=') ADVANCE(12);
|
||||
END_STATE();
|
||||
case 5:
|
||||
ACCEPT_TOKEN(ts_builtin_sym_end);
|
||||
END_STATE();
|
||||
case 6:
|
||||
ACCEPT_TOKEN(anon_sym_LBRACK);
|
||||
END_STATE();
|
||||
case 7:
|
||||
ACCEPT_TOKEN(aux_sym_section_name_token1);
|
||||
if (lookahead == '\t' ||
|
||||
lookahead == ' ') ADVANCE(7);
|
||||
if (lookahead == '#' ||
|
||||
lookahead == ';') ADVANCE(8);
|
||||
if (lookahead != 0 &&
|
||||
lookahead != '\n' &&
|
||||
lookahead != '[' &&
|
||||
lookahead != ']') ADVANCE(8);
|
||||
END_STATE();
|
||||
case 8:
|
||||
ACCEPT_TOKEN(aux_sym_section_name_token1);
|
||||
if (lookahead != 0 &&
|
||||
lookahead != '\n' &&
|
||||
lookahead != '[' &&
|
||||
lookahead != ']') ADVANCE(8);
|
||||
END_STATE();
|
||||
case 9:
|
||||
ACCEPT_TOKEN(anon_sym_RBRACK);
|
||||
END_STATE();
|
||||
case 10:
|
||||
ACCEPT_TOKEN(anon_sym_RBRACK);
|
||||
if (lookahead != 0 &&
|
||||
lookahead != '\t' &&
|
||||
lookahead != '\n' &&
|
||||
lookahead != '\r' &&
|
||||
lookahead != ' ' &&
|
||||
lookahead != '#' &&
|
||||
lookahead != ';' &&
|
||||
lookahead != '=' &&
|
||||
lookahead != '[') ADVANCE(12);
|
||||
END_STATE();
|
||||
case 11:
|
||||
ACCEPT_TOKEN(anon_sym_LF);
|
||||
END_STATE();
|
||||
case 12:
|
||||
ACCEPT_TOKEN(aux_sym_setting_token1);
|
||||
if (lookahead != 0 &&
|
||||
lookahead != '\t' &&
|
||||
lookahead != '\n' &&
|
||||
lookahead != '\r' &&
|
||||
lookahead != ' ' &&
|
||||
lookahead != '#' &&
|
||||
lookahead != ';' &&
|
||||
lookahead != '=' &&
|
||||
lookahead != '[') ADVANCE(12);
|
||||
END_STATE();
|
||||
case 13:
|
||||
ACCEPT_TOKEN(anon_sym_EQ);
|
||||
END_STATE();
|
||||
case 14:
|
||||
ACCEPT_TOKEN(aux_sym_setting_token2);
|
||||
if (lookahead == '\t' ||
|
||||
lookahead == ' ') ADVANCE(14);
|
||||
if (lookahead == '#' ||
|
||||
lookahead == ';') ADVANCE(15);
|
||||
if (lookahead != 0 &&
|
||||
lookahead != '\n') ADVANCE(15);
|
||||
END_STATE();
|
||||
case 15:
|
||||
ACCEPT_TOKEN(aux_sym_setting_token2);
|
||||
if (lookahead != 0 &&
|
||||
lookahead != '\n') ADVANCE(15);
|
||||
END_STATE();
|
||||
case 16:
|
||||
ACCEPT_TOKEN(aux_sym_comment_token1);
|
||||
END_STATE();
|
||||
case 17:
|
||||
ACCEPT_TOKEN(aux_sym_comment_token1);
|
||||
if (lookahead != 0 &&
|
||||
lookahead != '\n') ADVANCE(19);
|
||||
END_STATE();
|
||||
case 18:
|
||||
ACCEPT_TOKEN(aux_sym_comment_token2);
|
||||
if (lookahead == '\t' ||
|
||||
lookahead == ' ') ADVANCE(18);
|
||||
if (lookahead == '#' ||
|
||||
lookahead == ';') ADVANCE(17);
|
||||
if (lookahead != 0 &&
|
||||
lookahead != '\n') ADVANCE(19);
|
||||
END_STATE();
|
||||
case 19:
|
||||
ACCEPT_TOKEN(aux_sym_comment_token2);
|
||||
if (lookahead != 0 &&
|
||||
lookahead != '\n') ADVANCE(19);
|
||||
END_STATE();
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
static const TSLexMode ts_lex_modes[STATE_COUNT] = {
|
||||
[0] = {.lex_state = 0},
|
||||
[1] = {.lex_state = 0},
|
||||
[2] = {.lex_state = 0},
|
||||
[3] = {.lex_state = 4},
|
||||
[4] = {.lex_state = 4},
|
||||
[5] = {.lex_state = 0},
|
||||
[6] = {.lex_state = 0},
|
||||
[7] = {.lex_state = 0},
|
||||
[8] = {.lex_state = 4},
|
||||
[9] = {.lex_state = 0},
|
||||
[10] = {.lex_state = 4},
|
||||
[11] = {.lex_state = 4},
|
||||
[12] = {.lex_state = 4},
|
||||
[13] = {.lex_state = 0},
|
||||
[14] = {.lex_state = 0},
|
||||
[15] = {.lex_state = 0},
|
||||
[16] = {.lex_state = 1},
|
||||
[17] = {.lex_state = 2},
|
||||
[18] = {.lex_state = 0},
|
||||
[19] = {.lex_state = 3},
|
||||
[20] = {.lex_state = 18},
|
||||
[21] = {.lex_state = 0},
|
||||
[22] = {.lex_state = 0},
|
||||
[23] = {.lex_state = 0},
|
||||
[24] = {(TSStateId)(-1)},
|
||||
[25] = {(TSStateId)(-1)},
|
||||
};
|
||||
|
||||
static const uint16_t ts_parse_table[LARGE_STATE_COUNT][SYMBOL_COUNT] = {
|
||||
[0] = {
|
||||
[sym_comment] = STATE(0),
|
||||
[sym__blank] = STATE(0),
|
||||
[ts_builtin_sym_end] = ACTIONS(1),
|
||||
[anon_sym_LBRACK] = ACTIONS(1),
|
||||
[anon_sym_RBRACK] = ACTIONS(1),
|
||||
[anon_sym_LF] = ACTIONS(3),
|
||||
[aux_sym_setting_token1] = ACTIONS(1),
|
||||
[anon_sym_EQ] = ACTIONS(1),
|
||||
[aux_sym_comment_token1] = ACTIONS(5),
|
||||
},
|
||||
[1] = {
|
||||
[sym_document] = STATE(18),
|
||||
[sym_section] = STATE(14),
|
||||
[sym_section_name] = STATE(4),
|
||||
[sym_comment] = STATE(1),
|
||||
[sym__blank] = STATE(1),
|
||||
[aux_sym_document_repeat1] = STATE(2),
|
||||
[aux_sym_document_repeat2] = STATE(5),
|
||||
[ts_builtin_sym_end] = ACTIONS(7),
|
||||
[anon_sym_LBRACK] = ACTIONS(9),
|
||||
[anon_sym_LF] = ACTIONS(11),
|
||||
[aux_sym_comment_token1] = ACTIONS(5),
|
||||
},
|
||||
[2] = {
|
||||
[sym_section] = STATE(14),
|
||||
[sym_section_name] = STATE(4),
|
||||
[sym_comment] = STATE(2),
|
||||
[sym__blank] = STATE(2),
|
||||
[aux_sym_document_repeat1] = STATE(9),
|
||||
[aux_sym_document_repeat2] = STATE(7),
|
||||
[ts_builtin_sym_end] = ACTIONS(13),
|
||||
[anon_sym_LBRACK] = ACTIONS(9),
|
||||
[anon_sym_LF] = ACTIONS(11),
|
||||
[aux_sym_comment_token1] = ACTIONS(5),
|
||||
},
|
||||
};
|
||||
|
||||
static const uint16_t ts_small_parse_table[] = {
|
||||
[0] = 6,
|
||||
ACTIONS(3), 1,
|
||||
anon_sym_LF,
|
||||
ACTIONS(5), 1,
|
||||
aux_sym_comment_token1,
|
||||
ACTIONS(17), 1,
|
||||
aux_sym_setting_token1,
|
||||
STATE(12), 1,
|
||||
sym_setting,
|
||||
ACTIONS(15), 2,
|
||||
ts_builtin_sym_end,
|
||||
anon_sym_LBRACK,
|
||||
STATE(3), 3,
|
||||
sym_comment,
|
||||
sym__blank,
|
||||
aux_sym_section_repeat1,
|
||||
[22] = 7,
|
||||
ACTIONS(3), 1,
|
||||
anon_sym_LF,
|
||||
ACTIONS(5), 1,
|
||||
aux_sym_comment_token1,
|
||||
ACTIONS(22), 1,
|
||||
aux_sym_setting_token1,
|
||||
STATE(8), 1,
|
||||
aux_sym_section_repeat1,
|
||||
STATE(12), 1,
|
||||
sym_setting,
|
||||
ACTIONS(20), 2,
|
||||
ts_builtin_sym_end,
|
||||
anon_sym_LBRACK,
|
||||
STATE(4), 2,
|
||||
sym_comment,
|
||||
sym__blank,
|
||||
[46] = 8,
|
||||
ACTIONS(3), 1,
|
||||
anon_sym_LF,
|
||||
ACTIONS(5), 1,
|
||||
aux_sym_comment_token1,
|
||||
ACTIONS(9), 1,
|
||||
anon_sym_LBRACK,
|
||||
ACTIONS(24), 1,
|
||||
ts_builtin_sym_end,
|
||||
STATE(4), 1,
|
||||
sym_section_name,
|
||||
STATE(6), 1,
|
||||
aux_sym_document_repeat2,
|
||||
STATE(14), 1,
|
||||
sym_section,
|
||||
STATE(5), 2,
|
||||
sym_comment,
|
||||
sym__blank,
|
||||
[72] = 7,
|
||||
ACTIONS(3), 1,
|
||||
anon_sym_LF,
|
||||
ACTIONS(5), 1,
|
||||
aux_sym_comment_token1,
|
||||
ACTIONS(26), 1,
|
||||
ts_builtin_sym_end,
|
||||
ACTIONS(28), 1,
|
||||
anon_sym_LBRACK,
|
||||
STATE(4), 1,
|
||||
sym_section_name,
|
||||
STATE(14), 1,
|
||||
sym_section,
|
||||
STATE(6), 3,
|
||||
sym_comment,
|
||||
sym__blank,
|
||||
aux_sym_document_repeat2,
|
||||
[96] = 8,
|
||||
ACTIONS(3), 1,
|
||||
anon_sym_LF,
|
||||
ACTIONS(5), 1,
|
||||
aux_sym_comment_token1,
|
||||
ACTIONS(9), 1,
|
||||
anon_sym_LBRACK,
|
||||
ACTIONS(31), 1,
|
||||
ts_builtin_sym_end,
|
||||
STATE(4), 1,
|
||||
sym_section_name,
|
||||
STATE(6), 1,
|
||||
aux_sym_document_repeat2,
|
||||
STATE(14), 1,
|
||||
sym_section,
|
||||
STATE(7), 2,
|
||||
sym_comment,
|
||||
sym__blank,
|
||||
[122] = 7,
|
||||
ACTIONS(3), 1,
|
||||
anon_sym_LF,
|
||||
ACTIONS(5), 1,
|
||||
aux_sym_comment_token1,
|
||||
ACTIONS(22), 1,
|
||||
aux_sym_setting_token1,
|
||||
STATE(3), 1,
|
||||
aux_sym_section_repeat1,
|
||||
STATE(12), 1,
|
||||
sym_setting,
|
||||
ACTIONS(33), 2,
|
||||
ts_builtin_sym_end,
|
||||
anon_sym_LBRACK,
|
||||
STATE(8), 2,
|
||||
sym_comment,
|
||||
sym__blank,
|
||||
[146] = 4,
|
||||
ACTIONS(5), 1,
|
||||
aux_sym_comment_token1,
|
||||
ACTIONS(37), 1,
|
||||
anon_sym_LF,
|
||||
ACTIONS(35), 2,
|
||||
ts_builtin_sym_end,
|
||||
anon_sym_LBRACK,
|
||||
STATE(9), 3,
|
||||
sym_comment,
|
||||
sym__blank,
|
||||
aux_sym_document_repeat1,
|
||||
[162] = 4,
|
||||
ACTIONS(3), 1,
|
||||
anon_sym_LF,
|
||||
ACTIONS(5), 1,
|
||||
aux_sym_comment_token1,
|
||||
STATE(10), 2,
|
||||
sym_comment,
|
||||
sym__blank,
|
||||
ACTIONS(40), 3,
|
||||
ts_builtin_sym_end,
|
||||
anon_sym_LBRACK,
|
||||
aux_sym_setting_token1,
|
||||
[178] = 4,
|
||||
ACTIONS(3), 1,
|
||||
anon_sym_LF,
|
||||
ACTIONS(5), 1,
|
||||
aux_sym_comment_token1,
|
||||
STATE(11), 2,
|
||||
sym_comment,
|
||||
sym__blank,
|
||||
ACTIONS(42), 3,
|
||||
ts_builtin_sym_end,
|
||||
anon_sym_LBRACK,
|
||||
aux_sym_setting_token1,
|
||||
[194] = 4,
|
||||
ACTIONS(3), 1,
|
||||
anon_sym_LF,
|
||||
ACTIONS(5), 1,
|
||||
aux_sym_comment_token1,
|
||||
STATE(12), 2,
|
||||
sym_comment,
|
||||
sym__blank,
|
||||
ACTIONS(44), 3,
|
||||
ts_builtin_sym_end,
|
||||
anon_sym_LBRACK,
|
||||
aux_sym_setting_token1,
|
||||
[210] = 3,
|
||||
ACTIONS(5), 1,
|
||||
aux_sym_comment_token1,
|
||||
STATE(13), 2,
|
||||
sym_comment,
|
||||
sym__blank,
|
||||
ACTIONS(46), 3,
|
||||
ts_builtin_sym_end,
|
||||
anon_sym_LBRACK,
|
||||
anon_sym_LF,
|
||||
[223] = 4,
|
||||
ACTIONS(3), 1,
|
||||
anon_sym_LF,
|
||||
ACTIONS(5), 1,
|
||||
aux_sym_comment_token1,
|
||||
ACTIONS(48), 2,
|
||||
ts_builtin_sym_end,
|
||||
anon_sym_LBRACK,
|
||||
STATE(14), 2,
|
||||
sym_comment,
|
||||
sym__blank,
|
||||
[238] = 4,
|
||||
ACTIONS(3), 1,
|
||||
anon_sym_LF,
|
||||
ACTIONS(5), 1,
|
||||
aux_sym_comment_token1,
|
||||
ACTIONS(50), 1,
|
||||
anon_sym_EQ,
|
||||
STATE(15), 2,
|
||||
sym_comment,
|
||||
sym__blank,
|
||||
[252] = 4,
|
||||
ACTIONS(3), 1,
|
||||
anon_sym_LF,
|
||||
ACTIONS(5), 1,
|
||||
aux_sym_comment_token1,
|
||||
ACTIONS(52), 1,
|
||||
anon_sym_RBRACK,
|
||||
STATE(16), 2,
|
||||
sym_comment,
|
||||
sym__blank,
|
||||
[266] = 4,
|
||||
ACTIONS(54), 1,
|
||||
anon_sym_LF,
|
||||
ACTIONS(56), 1,
|
||||
aux_sym_setting_token2,
|
||||
ACTIONS(58), 1,
|
||||
aux_sym_comment_token1,
|
||||
STATE(17), 2,
|
||||
sym_comment,
|
||||
sym__blank,
|
||||
[280] = 4,
|
||||
ACTIONS(3), 1,
|
||||
anon_sym_LF,
|
||||
ACTIONS(5), 1,
|
||||
aux_sym_comment_token1,
|
||||
ACTIONS(60), 1,
|
||||
ts_builtin_sym_end,
|
||||
STATE(18), 2,
|
||||
sym_comment,
|
||||
sym__blank,
|
||||
[294] = 4,
|
||||
ACTIONS(54), 1,
|
||||
anon_sym_LF,
|
||||
ACTIONS(58), 1,
|
||||
aux_sym_comment_token1,
|
||||
ACTIONS(62), 1,
|
||||
aux_sym_section_name_token1,
|
||||
STATE(19), 2,
|
||||
sym_comment,
|
||||
sym__blank,
|
||||
[308] = 4,
|
||||
ACTIONS(54), 1,
|
||||
anon_sym_LF,
|
||||
ACTIONS(58), 1,
|
||||
aux_sym_comment_token1,
|
||||
ACTIONS(64), 1,
|
||||
aux_sym_comment_token2,
|
||||
STATE(20), 2,
|
||||
sym_comment,
|
||||
sym__blank,
|
||||
[322] = 3,
|
||||
ACTIONS(5), 1,
|
||||
aux_sym_comment_token1,
|
||||
ACTIONS(66), 1,
|
||||
anon_sym_LF,
|
||||
STATE(21), 2,
|
||||
sym_comment,
|
||||
sym__blank,
|
||||
[333] = 3,
|
||||
ACTIONS(5), 1,
|
||||
aux_sym_comment_token1,
|
||||
ACTIONS(68), 1,
|
||||
anon_sym_LF,
|
||||
STATE(22), 2,
|
||||
sym_comment,
|
||||
sym__blank,
|
||||
[344] = 3,
|
||||
ACTIONS(5), 1,
|
||||
aux_sym_comment_token1,
|
||||
ACTIONS(70), 1,
|
||||
anon_sym_LF,
|
||||
STATE(23), 2,
|
||||
sym_comment,
|
||||
sym__blank,
|
||||
[355] = 1,
|
||||
ACTIONS(46), 1,
|
||||
ts_builtin_sym_end,
|
||||
[359] = 1,
|
||||
ACTIONS(72), 1,
|
||||
ts_builtin_sym_end,
|
||||
};
|
||||
|
||||
static const uint32_t ts_small_parse_table_map[] = {
|
||||
[SMALL_STATE(3)] = 0,
|
||||
[SMALL_STATE(4)] = 22,
|
||||
[SMALL_STATE(5)] = 46,
|
||||
[SMALL_STATE(6)] = 72,
|
||||
[SMALL_STATE(7)] = 96,
|
||||
[SMALL_STATE(8)] = 122,
|
||||
[SMALL_STATE(9)] = 146,
|
||||
[SMALL_STATE(10)] = 162,
|
||||
[SMALL_STATE(11)] = 178,
|
||||
[SMALL_STATE(12)] = 194,
|
||||
[SMALL_STATE(13)] = 210,
|
||||
[SMALL_STATE(14)] = 223,
|
||||
[SMALL_STATE(15)] = 238,
|
||||
[SMALL_STATE(16)] = 252,
|
||||
[SMALL_STATE(17)] = 266,
|
||||
[SMALL_STATE(18)] = 280,
|
||||
[SMALL_STATE(19)] = 294,
|
||||
[SMALL_STATE(20)] = 308,
|
||||
[SMALL_STATE(21)] = 322,
|
||||
[SMALL_STATE(22)] = 333,
|
||||
[SMALL_STATE(23)] = 344,
|
||||
[SMALL_STATE(24)] = 355,
|
||||
[SMALL_STATE(25)] = 359,
|
||||
};
|
||||
|
||||
static const TSParseActionEntry ts_parse_actions[] = {
|
||||
[0] = {.entry = {.count = 0, .reusable = false}},
|
||||
[1] = {.entry = {.count = 1, .reusable = false}}, RECOVER(),
|
||||
[3] = {.entry = {.count = 1, .reusable = true}}, SHIFT(24),
|
||||
[5] = {.entry = {.count = 1, .reusable = true}}, SHIFT(20),
|
||||
[7] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_document, 0),
|
||||
[9] = {.entry = {.count = 1, .reusable = true}}, SHIFT(19),
|
||||
[11] = {.entry = {.count = 1, .reusable = true}}, SHIFT(13),
|
||||
[13] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_document, 1, .production_id = 2),
|
||||
[15] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_section_repeat1, 2),
|
||||
[17] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_section_repeat1, 2), SHIFT_REPEAT(15),
|
||||
[20] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_section, 1),
|
||||
[22] = {.entry = {.count = 1, .reusable = true}}, SHIFT(15),
|
||||
[24] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_document, 1),
|
||||
[26] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_document_repeat2, 2),
|
||||
[28] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat2, 2), SHIFT_REPEAT(19),
|
||||
[31] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_document, 2, .production_id = 2),
|
||||
[33] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_section, 2),
|
||||
[35] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2, .production_id = 3),
|
||||
[37] = {.entry = {.count = 2, .reusable = true}}, REDUCE(aux_sym_document_repeat1, 2, .production_id = 3), SHIFT_REPEAT(13),
|
||||
[40] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_setting, 4),
|
||||
[42] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_section_name, 4),
|
||||
[44] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_section_repeat1, 1),
|
||||
[46] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym__blank, 1, .production_id = 1),
|
||||
[48] = {.entry = {.count = 1, .reusable = true}}, REDUCE(aux_sym_document_repeat2, 1),
|
||||
[50] = {.entry = {.count = 1, .reusable = true}}, SHIFT(17),
|
||||
[52] = {.entry = {.count = 1, .reusable = true}}, SHIFT(21),
|
||||
[54] = {.entry = {.count = 1, .reusable = false}}, SHIFT(24),
|
||||
[56] = {.entry = {.count = 1, .reusable = true}}, SHIFT(23),
|
||||
[58] = {.entry = {.count = 1, .reusable = false}}, SHIFT(20),
|
||||
[60] = {.entry = {.count = 1, .reusable = true}}, ACCEPT_INPUT(),
|
||||
[62] = {.entry = {.count = 1, .reusable = true}}, SHIFT(16),
|
||||
[64] = {.entry = {.count = 1, .reusable = false}}, SHIFT(22),
|
||||
[66] = {.entry = {.count = 1, .reusable = true}}, SHIFT(11),
|
||||
[68] = {.entry = {.count = 1, .reusable = true}}, SHIFT(25),
|
||||
[70] = {.entry = {.count = 1, .reusable = true}}, SHIFT(10),
|
||||
[72] = {.entry = {.count = 1, .reusable = true}}, REDUCE(sym_comment, 3),
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#ifdef _WIN32
|
||||
#define extern __declspec(dllexport)
|
||||
#endif
|
||||
|
||||
extern const TSLanguage *tree_sitter_ini(void) {
|
||||
static const TSLanguage language = {
|
||||
.version = LANGUAGE_VERSION,
|
||||
.symbol_count = SYMBOL_COUNT,
|
||||
.alias_count = ALIAS_COUNT,
|
||||
.token_count = TOKEN_COUNT,
|
||||
.external_token_count = EXTERNAL_TOKEN_COUNT,
|
||||
.state_count = STATE_COUNT,
|
||||
.large_state_count = LARGE_STATE_COUNT,
|
||||
.production_id_count = PRODUCTION_ID_COUNT,
|
||||
.field_count = FIELD_COUNT,
|
||||
.max_alias_sequence_length = MAX_ALIAS_SEQUENCE_LENGTH,
|
||||
.parse_table = &ts_parse_table[0][0],
|
||||
.small_parse_table = ts_small_parse_table,
|
||||
.small_parse_table_map = ts_small_parse_table_map,
|
||||
.parse_actions = ts_parse_actions,
|
||||
.symbol_names = ts_symbol_names,
|
||||
.field_names = ts_field_names,
|
||||
.field_map_slices = ts_field_map_slices,
|
||||
.field_map_entries = ts_field_map_entries,
|
||||
.symbol_metadata = ts_symbol_metadata,
|
||||
.public_symbol_map = ts_symbol_map,
|
||||
.alias_map = ts_non_terminal_alias_map,
|
||||
.alias_sequences = &ts_alias_sequences[0][0],
|
||||
.lex_modes = ts_lex_modes,
|
||||
.lex_fn = ts_lex,
|
||||
.primary_state_ids = ts_primary_state_ids,
|
||||
};
|
||||
return &language;
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
224
tree-sitter-ini/src/tree_sitter/parser.h
Normal file
224
tree-sitter-ini/src/tree_sitter/parser.h
Normal file
|
@ -0,0 +1,224 @@
|
|||
#ifndef TREE_SITTER_PARSER_H_
|
||||
#define TREE_SITTER_PARSER_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define ts_builtin_sym_error ((TSSymbol)-1)
|
||||
#define ts_builtin_sym_end 0
|
||||
#define TREE_SITTER_SERIALIZATION_BUFFER_SIZE 1024
|
||||
|
||||
typedef uint16_t TSStateId;
|
||||
|
||||
#ifndef TREE_SITTER_API_H_
|
||||
typedef uint16_t TSSymbol;
|
||||
typedef uint16_t TSFieldId;
|
||||
typedef struct TSLanguage TSLanguage;
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
TSFieldId field_id;
|
||||
uint8_t child_index;
|
||||
bool inherited;
|
||||
} TSFieldMapEntry;
|
||||
|
||||
typedef struct {
|
||||
uint16_t index;
|
||||
uint16_t length;
|
||||
} TSFieldMapSlice;
|
||||
|
||||
typedef struct {
|
||||
bool visible;
|
||||
bool named;
|
||||
bool supertype;
|
||||
} TSSymbolMetadata;
|
||||
|
||||
typedef struct TSLexer TSLexer;
|
||||
|
||||
struct TSLexer {
|
||||
int32_t lookahead;
|
||||
TSSymbol result_symbol;
|
||||
void (*advance)(TSLexer *, bool);
|
||||
void (*mark_end)(TSLexer *);
|
||||
uint32_t (*get_column)(TSLexer *);
|
||||
bool (*is_at_included_range_start)(const TSLexer *);
|
||||
bool (*eof)(const TSLexer *);
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
TSParseActionTypeShift,
|
||||
TSParseActionTypeReduce,
|
||||
TSParseActionTypeAccept,
|
||||
TSParseActionTypeRecover,
|
||||
} TSParseActionType;
|
||||
|
||||
typedef union {
|
||||
struct {
|
||||
uint8_t type;
|
||||
TSStateId state;
|
||||
bool extra;
|
||||
bool repetition;
|
||||
} shift;
|
||||
struct {
|
||||
uint8_t type;
|
||||
uint8_t child_count;
|
||||
TSSymbol symbol;
|
||||
int16_t dynamic_precedence;
|
||||
uint16_t production_id;
|
||||
} reduce;
|
||||
uint8_t type;
|
||||
} TSParseAction;
|
||||
|
||||
typedef struct {
|
||||
uint16_t lex_state;
|
||||
uint16_t external_lex_state;
|
||||
} TSLexMode;
|
||||
|
||||
typedef union {
|
||||
TSParseAction action;
|
||||
struct {
|
||||
uint8_t count;
|
||||
bool reusable;
|
||||
} entry;
|
||||
} TSParseActionEntry;
|
||||
|
||||
struct TSLanguage {
|
||||
uint32_t version;
|
||||
uint32_t symbol_count;
|
||||
uint32_t alias_count;
|
||||
uint32_t token_count;
|
||||
uint32_t external_token_count;
|
||||
uint32_t state_count;
|
||||
uint32_t large_state_count;
|
||||
uint32_t production_id_count;
|
||||
uint32_t field_count;
|
||||
uint16_t max_alias_sequence_length;
|
||||
const uint16_t *parse_table;
|
||||
const uint16_t *small_parse_table;
|
||||
const uint32_t *small_parse_table_map;
|
||||
const TSParseActionEntry *parse_actions;
|
||||
const char * const *symbol_names;
|
||||
const char * const *field_names;
|
||||
const TSFieldMapSlice *field_map_slices;
|
||||
const TSFieldMapEntry *field_map_entries;
|
||||
const TSSymbolMetadata *symbol_metadata;
|
||||
const TSSymbol *public_symbol_map;
|
||||
const uint16_t *alias_map;
|
||||
const TSSymbol *alias_sequences;
|
||||
const TSLexMode *lex_modes;
|
||||
bool (*lex_fn)(TSLexer *, TSStateId);
|
||||
bool (*keyword_lex_fn)(TSLexer *, TSStateId);
|
||||
TSSymbol keyword_capture_token;
|
||||
struct {
|
||||
const bool *states;
|
||||
const TSSymbol *symbol_map;
|
||||
void *(*create)(void);
|
||||
void (*destroy)(void *);
|
||||
bool (*scan)(void *, TSLexer *, const bool *symbol_whitelist);
|
||||
unsigned (*serialize)(void *, char *);
|
||||
void (*deserialize)(void *, const char *, unsigned);
|
||||
} external_scanner;
|
||||
const TSStateId *primary_state_ids;
|
||||
};
|
||||
|
||||
/*
|
||||
* Lexer Macros
|
||||
*/
|
||||
|
||||
#define START_LEXER() \
|
||||
bool result = false; \
|
||||
bool skip = false; \
|
||||
bool eof = false; \
|
||||
int32_t lookahead; \
|
||||
goto start; \
|
||||
next_state: \
|
||||
lexer->advance(lexer, skip); \
|
||||
start: \
|
||||
skip = false; \
|
||||
lookahead = lexer->lookahead;
|
||||
|
||||
#define ADVANCE(state_value) \
|
||||
{ \
|
||||
state = state_value; \
|
||||
goto next_state; \
|
||||
}
|
||||
|
||||
#define SKIP(state_value) \
|
||||
{ \
|
||||
skip = true; \
|
||||
state = state_value; \
|
||||
goto next_state; \
|
||||
}
|
||||
|
||||
#define ACCEPT_TOKEN(symbol_value) \
|
||||
result = true; \
|
||||
lexer->result_symbol = symbol_value; \
|
||||
lexer->mark_end(lexer);
|
||||
|
||||
#define END_STATE() return result;
|
||||
|
||||
/*
|
||||
* Parse Table Macros
|
||||
*/
|
||||
|
||||
#define SMALL_STATE(id) id - LARGE_STATE_COUNT
|
||||
|
||||
#define STATE(id) id
|
||||
|
||||
#define ACTIONS(id) id
|
||||
|
||||
#define SHIFT(state_value) \
|
||||
{{ \
|
||||
.shift = { \
|
||||
.type = TSParseActionTypeShift, \
|
||||
.state = state_value \
|
||||
} \
|
||||
}}
|
||||
|
||||
#define SHIFT_REPEAT(state_value) \
|
||||
{{ \
|
||||
.shift = { \
|
||||
.type = TSParseActionTypeShift, \
|
||||
.state = state_value, \
|
||||
.repetition = true \
|
||||
} \
|
||||
}}
|
||||
|
||||
#define SHIFT_EXTRA() \
|
||||
{{ \
|
||||
.shift = { \
|
||||
.type = TSParseActionTypeShift, \
|
||||
.extra = true \
|
||||
} \
|
||||
}}
|
||||
|
||||
#define REDUCE(symbol_val, child_count_val, ...) \
|
||||
{{ \
|
||||
.reduce = { \
|
||||
.type = TSParseActionTypeReduce, \
|
||||
.symbol = symbol_val, \
|
||||
.child_count = child_count_val, \
|
||||
__VA_ARGS__ \
|
||||
}, \
|
||||
}}
|
||||
|
||||
#define RECOVER() \
|
||||
{{ \
|
||||
.type = TSParseActionTypeRecover \
|
||||
}}
|
||||
|
||||
#define ACCEPT_INPUT() \
|
||||
{{ \
|
||||
.type = TSParseActionTypeAccept \
|
||||
}}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // TREE_SITTER_PARSER_H_
|
1
tree-sitter-ini/target/.rustc_info.json
Normal file
1
tree-sitter-ini/target/.rustc_info.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"rustc_fingerprint":11260894070489397689,"outputs":{"4614504638168534921":{"success":true,"status":"","code":0,"stdout":"rustc 1.78.0 (9b00956e5 2024-04-29) (Arch Linux rust 1:1.78.0-1)\nbinary: rustc\ncommit-hash: 9b00956e56009bab2aa15d7bff10916599e3d6d6\ncommit-date: 2024-04-29\nhost: x86_64-unknown-linux-gnu\nrelease: 1.78.0\nLLVM version: 17.0.6\n","stderr":""},"15729799797837862367":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/usr\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_abi=\"\"\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n","stderr":""}},"successes":{}}
|
3
tree-sitter-ini/target/CACHEDIR.TAG
Normal file
3
tree-sitter-ini/target/CACHEDIR.TAG
Normal file
|
@ -0,0 +1,3 @@
|
|||
Signature: 8a477f597d28d172789f06886806bc55
|
||||
# This file is a cache directory tag created by cargo.
|
||||
# For information about cache directory tags see https://bford.info/cachedir/
|
0
tree-sitter-ini/target/debug/.cargo-lock
Normal file
0
tree-sitter-ini/target/debug/.cargo-lock
Normal file
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
|
@ -0,0 +1 @@
|
|||
a49ebadde2fe5a7d
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16583506157668836161,"features":"[\"perf-literal\", \"std\"]","declared_features":"","target":12812136000324506373,"profile":12206360443249279867,"path":10446268625895115141,"deps":[[15818844694086178958,"memchr",false,11329306894652947675]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/aho-corasick-10b09bbd2eca3c7e/dep-lib-aho_corasick"}}],"rustflags":[],"metadata":13904389431191498124,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
|
@ -0,0 +1 @@
|
|||
995d9bb696327f85
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16583506157668836161,"features":"[]","declared_features":"","target":15023190189141807623,"profile":13232757476167777671,"path":7466279345382719126,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/cc-df948ec87e50d7e7/dep-lib-cc"}}],"rustflags":[],"metadata":5862599371499774553,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
|
@ -0,0 +1 @@
|
|||
db3c2c6f98c8399d
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16583506157668836161,"features":"[\"alloc\", \"std\"]","declared_features":"","target":13876443730220172507,"profile":12206360443249279867,"path":15597642949939280618,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/memchr-e4819dc6438ca4db/dep-lib-memchr"}}],"rustflags":[],"metadata":7513296495906230968,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
|
@ -0,0 +1 @@
|
|||
89b93c4e256811f5
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16583506157668836161,"features":"[\"default\", \"perf\", \"perf-backtrack\", \"perf-cache\", \"perf-dfa\", \"perf-inline\", \"perf-literal\", \"perf-onepass\", \"std\", \"unicode\", \"unicode-age\", \"unicode-bool\", \"unicode-case\", \"unicode-gencat\", \"unicode-perl\", \"unicode-script\", \"unicode-segment\"]","declared_features":"","target":16142358731464406428,"profile":12206360443249279867,"path":180428272276170148,"deps":[[483568489426407569,"regex_automata",false,4408560988540412204],[7325384046744447800,"aho_corasick",false,9032812252981010084],[12784352588272788987,"regex_syntax",false,16558921218916457087],[15818844694086178958,"memchr",false,11329306894652947675]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/regex-8e612725c91e213e/dep-lib-regex"}}],"rustflags":[],"metadata":3256615787768725874,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
|
@ -0,0 +1 @@
|
|||
2ca1988cdc5a2e3d
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16583506157668836161,"features":"[\"alloc\", \"dfa-onepass\", \"hybrid\", \"meta\", \"nfa-backtrack\", \"nfa-pikevm\", \"nfa-thompson\", \"perf-inline\", \"perf-literal\", \"perf-literal-multisubstring\", \"perf-literal-substring\", \"std\", \"syntax\", \"unicode\", \"unicode-age\", \"unicode-bool\", \"unicode-case\", \"unicode-gencat\", \"unicode-perl\", \"unicode-script\", \"unicode-segment\", \"unicode-word-boundary\"]","declared_features":"","target":5453405124896219811,"profile":12206360443249279867,"path":18338993312539262787,"deps":[[7325384046744447800,"aho_corasick",false,9032812252981010084],[12784352588272788987,"regex_syntax",false,16558921218916457087],[15818844694086178958,"memchr",false,11329306894652947675]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/regex-automata-c86b0adaebe87bbb/dep-lib-regex-automata"}}],"rustflags":[],"metadata":8878122455581797878,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
|
@ -0,0 +1 @@
|
|||
7f9a319d1d1bcde5
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16583506157668836161,"features":"[\"default\", \"std\", \"unicode\", \"unicode-age\", \"unicode-bool\", \"unicode-case\", \"unicode-gencat\", \"unicode-perl\", \"unicode-script\", \"unicode-segment\"]","declared_features":"","target":8604279501505848501,"profile":12206360443249279867,"path":5729449356800907656,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/regex-syntax-cd5d9c4f6a2505c6/dep-lib-regex-syntax"}}],"rustflags":[],"metadata":17586400164587752172,"config":2202906307356721367,"compile_kind":0}
|
|
@ -0,0 +1 @@
|
|||
4a3859f9621c9b89
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16583506157668836161,"features":"[]","declared_features":"","target":427768481117760528,"profile":13232757476167777671,"path":12006644674765026543,"deps":[[241033544353054525,"cc",false,9619462951976787353]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/tree-sitter-0ea054890703eeb1/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":16601361075569316419,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
|
@ -0,0 +1 @@
|
|||
96e540ae51d18cc4
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16583506157668836161,"features":"[]","declared_features":"","target":8785052421252164917,"profile":12206360443249279867,"path":12306702273252759418,"deps":[[4487136755880478424,"build_script_build",false,13861921312116881664],[7667881417093566568,"regex",false,17659010123332106633]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/tree-sitter-2413448a09241f91/dep-lib-tree-sitter"}}],"rustflags":[],"metadata":16601361075569316419,"config":2202906307356721367,"compile_kind":0}
|
|
@ -0,0 +1 @@
|
|||
00b92461fd6f5fc0
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16583506157668836161,"features":"","declared_features":"","target":0,"profile":0,"path":0,"deps":[[4487136755880478424,"build_script_build",false,9915550216002025546]],"local":[{"RerunIfChanged":{"output":"debug/build/tree-sitter-87133593af93f869/output","paths":["src/alloc.c","src/alloc.h","src/array.h","src/atomic.h","src/clock.h","src/error_costs.h","src/get_changed_ranges.c","src/get_changed_ranges.h","src/host.h","src/language.c","src/language.h","src/length.h","src/lexer.c","src/lexer.h","src/lib.c","src/node.c","src/parser.c","src/point.h","src/query.c","src/reduce_action.h","src/reusable_node.h","src/stack.c","src/stack.h","src/subtree.c","src/subtree.h","src/tree.c","src/tree.h","src/tree_cursor.c","src/tree_cursor.h","src/unicode","src/unicode.h"]}},{"RerunIfEnvChanged":{"var":"TREE_SITTER_STATIC_ANALYSIS","val":null}},{"RerunIfEnvChanged":{"var":"CC_x86_64-unknown-linux-gnu","val":null}},{"RerunIfEnvChanged":{"var":"CC_x86_64_unknown_linux_gnu","val":null}},{"RerunIfEnvChanged":{"var":"HOST_CC","val":null}},{"RerunIfEnvChanged":{"var":"CC","val":null}},{"RerunIfEnvChanged":{"var":"CC_ENABLE_DEBUG_OUTPUT","val":null}},{"RerunIfEnvChanged":{"var":"CRATE_CC_NO_DEFAULTS","val":null}},{"RerunIfEnvChanged":{"var":"CFLAGS_x86_64-unknown-linux-gnu","val":null}},{"RerunIfEnvChanged":{"var":"CFLAGS_x86_64_unknown_linux_gnu","val":null}},{"RerunIfEnvChanged":{"var":"HOST_CFLAGS","val":null}},{"RerunIfEnvChanged":{"var":"CFLAGS","val":null}},{"RerunIfEnvChanged":{"var":"CC_ENABLE_DEBUG_OUTPUT","val":null}},{"RerunIfEnvChanged":{"var":"CRATE_CC_NO_DEFAULTS","val":null}},{"RerunIfEnvChanged":{"var":"CFLAGS_x86_64-unknown-linux-gnu","val":null}},{"RerunIfEnvChanged":{"var":"CFLAGS_x86_64_unknown_linux_gnu","val":null}},{"RerunIfEnvChanged":{"var":"HOST_CFLAGS","val":null}},{"RerunIfEnvChanged":{"var":"CFLAGS","val":null}},{"RerunIfEnvChanged":{"var":"CC_ENABLE_DEBUG_OUTPUT","val":null}},{"RerunIfEnvChanged":{"var":"CRATE_CC_NO_DEFAULTS","val":null}},{"RerunIfEnvChanged":{"var":"CFLAGS_x86_64-unknown-linux-gnu","val":null}},{"RerunIfEnvChanged":{"var":"CFLAGS_x86_64_unknown_linux_gnu","val":null}},{"RerunIfEnvChanged":{"var":"HOST_CFLAGS","val":null}},{"RerunIfEnvChanged":{"var":"CFLAGS","val":null}},{"RerunIfEnvChanged":{"var":"AR_x86_64-unknown-linux-gnu","val":null}},{"RerunIfEnvChanged":{"var":"AR_x86_64_unknown_linux_gnu","val":null}},{"RerunIfEnvChanged":{"var":"HOST_AR","val":null}},{"RerunIfEnvChanged":{"var":"AR","val":null}},{"RerunIfEnvChanged":{"var":"ARFLAGS_x86_64-unknown-linux-gnu","val":null}},{"RerunIfEnvChanged":{"var":"ARFLAGS_x86_64_unknown_linux_gnu","val":null}},{"RerunIfEnvChanged":{"var":"HOST_ARFLAGS","val":null}},{"RerunIfEnvChanged":{"var":"ARFLAGS","val":null}}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0}
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
|
@ -0,0 +1 @@
|
|||
a72732b50ea8c8d8
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16583506157668836161,"features":"[]","declared_features":"","target":5889781233597949388,"profile":11597332650809196192,"path":5590908699341446160,"deps":[[4487136755880478424,"tree_sitter",false,14162925076919412118],[14751392831929195897,"build_script_build",false,11599813294565551179]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/tree-sitter-ini-62d7a0f87ebf8cb7/dep-lib-tree-sitter-ini"}}],"rustflags":[],"metadata":13920973736747840874,"config":2202906307356721367,"compile_kind":0}
|
|
@ -0,0 +1 @@
|
|||
4bec6ea3bbd0faa0
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16583506157668836161,"features":"","declared_features":"","target":0,"profile":0,"path":0,"deps":[[14751392831929195897,"build_script_build",false,17415460619025531289]],"local":[{"RerunIfChanged":{"output":"debug/build/tree-sitter-ini-81836a28f15b8905/output","paths":["src/parser.c"]}},{"RerunIfEnvChanged":{"var":"CC_x86_64-unknown-linux-gnu","val":null}},{"RerunIfEnvChanged":{"var":"CC_x86_64_unknown_linux_gnu","val":null}},{"RerunIfEnvChanged":{"var":"HOST_CC","val":null}},{"RerunIfEnvChanged":{"var":"CC","val":null}},{"RerunIfEnvChanged":{"var":"CC_ENABLE_DEBUG_OUTPUT","val":null}},{"RerunIfEnvChanged":{"var":"CRATE_CC_NO_DEFAULTS","val":null}},{"RerunIfEnvChanged":{"var":"CFLAGS_x86_64-unknown-linux-gnu","val":null}},{"RerunIfEnvChanged":{"var":"CFLAGS_x86_64_unknown_linux_gnu","val":null}},{"RerunIfEnvChanged":{"var":"HOST_CFLAGS","val":null}},{"RerunIfEnvChanged":{"var":"CFLAGS","val":null}},{"RerunIfEnvChanged":{"var":"CC_ENABLE_DEBUG_OUTPUT","val":null}},{"RerunIfEnvChanged":{"var":"CRATE_CC_NO_DEFAULTS","val":null}},{"RerunIfEnvChanged":{"var":"CFLAGS_x86_64-unknown-linux-gnu","val":null}},{"RerunIfEnvChanged":{"var":"CFLAGS_x86_64_unknown_linux_gnu","val":null}},{"RerunIfEnvChanged":{"var":"HOST_CFLAGS","val":null}},{"RerunIfEnvChanged":{"var":"CFLAGS","val":null}},{"RerunIfEnvChanged":{"var":"CC_ENABLE_DEBUG_OUTPUT","val":null}},{"RerunIfEnvChanged":{"var":"CRATE_CC_NO_DEFAULTS","val":null}},{"RerunIfEnvChanged":{"var":"CFLAGS_x86_64-unknown-linux-gnu","val":null}},{"RerunIfEnvChanged":{"var":"CFLAGS_x86_64_unknown_linux_gnu","val":null}},{"RerunIfEnvChanged":{"var":"HOST_CFLAGS","val":null}},{"RerunIfEnvChanged":{"var":"CFLAGS","val":null}},{"RerunIfEnvChanged":{"var":"CC_ENABLE_DEBUG_OUTPUT","val":null}},{"RerunIfEnvChanged":{"var":"CRATE_CC_NO_DEFAULTS","val":null}},{"RerunIfEnvChanged":{"var":"CFLAGS_x86_64-unknown-linux-gnu","val":null}},{"RerunIfEnvChanged":{"var":"CFLAGS_x86_64_unknown_linux_gnu","val":null}},{"RerunIfEnvChanged":{"var":"HOST_CFLAGS","val":null}},{"RerunIfEnvChanged":{"var":"CFLAGS","val":null}},{"RerunIfEnvChanged":{"var":"AR_x86_64-unknown-linux-gnu","val":null}},{"RerunIfEnvChanged":{"var":"AR_x86_64_unknown_linux_gnu","val":null}},{"RerunIfEnvChanged":{"var":"HOST_AR","val":null}},{"RerunIfEnvChanged":{"var":"AR","val":null}},{"RerunIfEnvChanged":{"var":"ARFLAGS_x86_64-unknown-linux-gnu","val":null}},{"RerunIfEnvChanged":{"var":"ARFLAGS_x86_64_unknown_linux_gnu","val":null}},{"RerunIfEnvChanged":{"var":"HOST_ARFLAGS","val":null}},{"RerunIfEnvChanged":{"var":"ARFLAGS","val":null}}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0}
|
|
@ -0,0 +1 @@
|
|||
9941d2742925b0f1
|
|
@ -0,0 +1 @@
|
|||
{"rustc":16583506157668836161,"features":"[]","declared_features":"","target":2297296889237502566,"profile":15213770746169573676,"path":7094112184754181655,"deps":[[241033544353054525,"cc",false,9619462951976787353]],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/tree-sitter-ini-caf58916914acc2d/dep-build-script-build-script-build"}}],"rustflags":[],"metadata":13920973736747840874,"config":2202906307356721367,"compile_kind":0}
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,5 @@
|
|||
/home/coding-agent/dev/tree-sitter/tree-sitter-ini/target/debug/build/tree-sitter-0ea054890703eeb1/build_script_build-0ea054890703eeb1: /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tree-sitter-0.20.10/binding_rust/build.rs
|
||||
|
||||
/home/coding-agent/dev/tree-sitter/tree-sitter-ini/target/debug/build/tree-sitter-0ea054890703eeb1/build_script_build-0ea054890703eeb1.d: /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tree-sitter-0.20.10/binding_rust/build.rs
|
||||
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tree-sitter-0.20.10/binding_rust/build.rs:
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
int main(void) { return 0; }
|
Binary file not shown.
|
@ -0,0 +1,98 @@
|
|||
cargo:rerun-if-env-changed=TREE_SITTER_STATIC_ANALYSIS
|
||||
cargo:rerun-if-changed=src/alloc.c
|
||||
cargo:rerun-if-changed=src/alloc.h
|
||||
cargo:rerun-if-changed=src/array.h
|
||||
cargo:rerun-if-changed=src/atomic.h
|
||||
cargo:rerun-if-changed=src/clock.h
|
||||
cargo:rerun-if-changed=src/error_costs.h
|
||||
cargo:rerun-if-changed=src/get_changed_ranges.c
|
||||
cargo:rerun-if-changed=src/get_changed_ranges.h
|
||||
cargo:rerun-if-changed=src/host.h
|
||||
cargo:rerun-if-changed=src/language.c
|
||||
cargo:rerun-if-changed=src/language.h
|
||||
cargo:rerun-if-changed=src/length.h
|
||||
cargo:rerun-if-changed=src/lexer.c
|
||||
cargo:rerun-if-changed=src/lexer.h
|
||||
cargo:rerun-if-changed=src/lib.c
|
||||
cargo:rerun-if-changed=src/node.c
|
||||
cargo:rerun-if-changed=src/parser.c
|
||||
cargo:rerun-if-changed=src/point.h
|
||||
cargo:rerun-if-changed=src/query.c
|
||||
cargo:rerun-if-changed=src/reduce_action.h
|
||||
cargo:rerun-if-changed=src/reusable_node.h
|
||||
cargo:rerun-if-changed=src/stack.c
|
||||
cargo:rerun-if-changed=src/stack.h
|
||||
cargo:rerun-if-changed=src/subtree.c
|
||||
cargo:rerun-if-changed=src/subtree.h
|
||||
cargo:rerun-if-changed=src/tree.c
|
||||
cargo:rerun-if-changed=src/tree.h
|
||||
cargo:rerun-if-changed=src/tree_cursor.c
|
||||
cargo:rerun-if-changed=src/tree_cursor.h
|
||||
cargo:rerun-if-changed=src/unicode
|
||||
cargo:rerun-if-changed=src/unicode.h
|
||||
TARGET = Some("x86_64-unknown-linux-gnu")
|
||||
OPT_LEVEL = Some("0")
|
||||
HOST = Some("x86_64-unknown-linux-gnu")
|
||||
cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu
|
||||
CC_x86_64-unknown-linux-gnu = None
|
||||
cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu
|
||||
CC_x86_64_unknown_linux_gnu = None
|
||||
cargo:rerun-if-env-changed=HOST_CC
|
||||
HOST_CC = None
|
||||
cargo:rerun-if-env-changed=CC
|
||||
CC = None
|
||||
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
|
||||
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
|
||||
CRATE_CC_NO_DEFAULTS = None
|
||||
DEBUG = Some("true")
|
||||
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
|
||||
cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
|
||||
CFLAGS_x86_64-unknown-linux-gnu = None
|
||||
cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
|
||||
CFLAGS_x86_64_unknown_linux_gnu = None
|
||||
cargo:rerun-if-env-changed=HOST_CFLAGS
|
||||
HOST_CFLAGS = None
|
||||
cargo:rerun-if-env-changed=CFLAGS
|
||||
CFLAGS = None
|
||||
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
|
||||
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
|
||||
CRATE_CC_NO_DEFAULTS = None
|
||||
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
|
||||
cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
|
||||
CFLAGS_x86_64-unknown-linux-gnu = None
|
||||
cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
|
||||
CFLAGS_x86_64_unknown_linux_gnu = None
|
||||
cargo:rerun-if-env-changed=HOST_CFLAGS
|
||||
HOST_CFLAGS = None
|
||||
cargo:rerun-if-env-changed=CFLAGS
|
||||
CFLAGS = None
|
||||
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
|
||||
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
|
||||
CRATE_CC_NO_DEFAULTS = None
|
||||
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
|
||||
cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
|
||||
CFLAGS_x86_64-unknown-linux-gnu = None
|
||||
cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
|
||||
CFLAGS_x86_64_unknown_linux_gnu = None
|
||||
cargo:rerun-if-env-changed=HOST_CFLAGS
|
||||
HOST_CFLAGS = None
|
||||
cargo:rerun-if-env-changed=CFLAGS
|
||||
CFLAGS = None
|
||||
cargo:rerun-if-env-changed=AR_x86_64-unknown-linux-gnu
|
||||
AR_x86_64-unknown-linux-gnu = None
|
||||
cargo:rerun-if-env-changed=AR_x86_64_unknown_linux_gnu
|
||||
AR_x86_64_unknown_linux_gnu = None
|
||||
cargo:rerun-if-env-changed=HOST_AR
|
||||
HOST_AR = None
|
||||
cargo:rerun-if-env-changed=AR
|
||||
AR = None
|
||||
cargo:rerun-if-env-changed=ARFLAGS_x86_64-unknown-linux-gnu
|
||||
ARFLAGS_x86_64-unknown-linux-gnu = None
|
||||
cargo:rerun-if-env-changed=ARFLAGS_x86_64_unknown_linux_gnu
|
||||
ARFLAGS_x86_64_unknown_linux_gnu = None
|
||||
cargo:rerun-if-env-changed=HOST_ARFLAGS
|
||||
HOST_ARFLAGS = None
|
||||
cargo:rerun-if-env-changed=ARFLAGS
|
||||
ARFLAGS = None
|
||||
cargo:rustc-link-lib=static=tree-sitter
|
||||
cargo:rustc-link-search=native=/home/coding-agent/dev/tree-sitter/tree-sitter-ini/target/debug/build/tree-sitter-87133593af93f869/out
|
|
@ -0,0 +1 @@
|
|||
/home/coding-agent/dev/tree-sitter/tree-sitter-ini/target/debug/build/tree-sitter-87133593af93f869/out
|
|
@ -0,0 +1 @@
|
|||
This file has an mtime of when this was started.
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
int main(void) { return 0; }
|
Binary file not shown.
|
@ -0,0 +1,79 @@
|
|||
TARGET = Some("x86_64-unknown-linux-gnu")
|
||||
OPT_LEVEL = Some("0")
|
||||
HOST = Some("x86_64-unknown-linux-gnu")
|
||||
cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu
|
||||
CC_x86_64-unknown-linux-gnu = None
|
||||
cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu
|
||||
CC_x86_64_unknown_linux_gnu = None
|
||||
cargo:rerun-if-env-changed=HOST_CC
|
||||
HOST_CC = None
|
||||
cargo:rerun-if-env-changed=CC
|
||||
CC = None
|
||||
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
|
||||
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
|
||||
CRATE_CC_NO_DEFAULTS = None
|
||||
DEBUG = Some("true")
|
||||
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
|
||||
cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
|
||||
CFLAGS_x86_64-unknown-linux-gnu = None
|
||||
cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
|
||||
CFLAGS_x86_64_unknown_linux_gnu = None
|
||||
cargo:rerun-if-env-changed=HOST_CFLAGS
|
||||
HOST_CFLAGS = None
|
||||
cargo:rerun-if-env-changed=CFLAGS
|
||||
CFLAGS = None
|
||||
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
|
||||
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
|
||||
CRATE_CC_NO_DEFAULTS = None
|
||||
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
|
||||
cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
|
||||
CFLAGS_x86_64-unknown-linux-gnu = None
|
||||
cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
|
||||
CFLAGS_x86_64_unknown_linux_gnu = None
|
||||
cargo:rerun-if-env-changed=HOST_CFLAGS
|
||||
HOST_CFLAGS = None
|
||||
cargo:rerun-if-env-changed=CFLAGS
|
||||
CFLAGS = None
|
||||
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
|
||||
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
|
||||
CRATE_CC_NO_DEFAULTS = None
|
||||
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
|
||||
cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
|
||||
CFLAGS_x86_64-unknown-linux-gnu = None
|
||||
cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
|
||||
CFLAGS_x86_64_unknown_linux_gnu = None
|
||||
cargo:rerun-if-env-changed=HOST_CFLAGS
|
||||
HOST_CFLAGS = None
|
||||
cargo:rerun-if-env-changed=CFLAGS
|
||||
CFLAGS = None
|
||||
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
|
||||
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
|
||||
CRATE_CC_NO_DEFAULTS = None
|
||||
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
|
||||
cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
|
||||
CFLAGS_x86_64-unknown-linux-gnu = None
|
||||
cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
|
||||
CFLAGS_x86_64_unknown_linux_gnu = None
|
||||
cargo:rerun-if-env-changed=HOST_CFLAGS
|
||||
HOST_CFLAGS = None
|
||||
cargo:rerun-if-env-changed=CFLAGS
|
||||
CFLAGS = None
|
||||
cargo:rerun-if-env-changed=AR_x86_64-unknown-linux-gnu
|
||||
AR_x86_64-unknown-linux-gnu = None
|
||||
cargo:rerun-if-env-changed=AR_x86_64_unknown_linux_gnu
|
||||
AR_x86_64_unknown_linux_gnu = None
|
||||
cargo:rerun-if-env-changed=HOST_AR
|
||||
HOST_AR = None
|
||||
cargo:rerun-if-env-changed=AR
|
||||
AR = None
|
||||
cargo:rerun-if-env-changed=ARFLAGS_x86_64-unknown-linux-gnu
|
||||
ARFLAGS_x86_64-unknown-linux-gnu = None
|
||||
cargo:rerun-if-env-changed=ARFLAGS_x86_64_unknown_linux_gnu
|
||||
ARFLAGS_x86_64_unknown_linux_gnu = None
|
||||
cargo:rerun-if-env-changed=HOST_ARFLAGS
|
||||
HOST_ARFLAGS = None
|
||||
cargo:rerun-if-env-changed=ARFLAGS
|
||||
ARFLAGS = None
|
||||
cargo:rustc-link-lib=static=parser
|
||||
cargo:rustc-link-search=native=/home/coding-agent/dev/tree-sitter/tree-sitter-ini/target/debug/build/tree-sitter-ini-81836a28f15b8905/out
|
||||
cargo:rerun-if-changed=src/parser.c
|
|
@ -0,0 +1 @@
|
|||
/home/coding-agent/dev/tree-sitter/tree-sitter-ini/target/debug/build/tree-sitter-ini-81836a28f15b8905/out
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,5 @@
|
|||
/home/coding-agent/dev/tree-sitter/tree-sitter-ini/target/debug/build/tree-sitter-ini-caf58916914acc2d/build_script_build-caf58916914acc2d: bindings/rust/build.rs
|
||||
|
||||
/home/coding-agent/dev/tree-sitter/tree-sitter-ini/target/debug/build/tree-sitter-ini-caf58916914acc2d/build_script_build-caf58916914acc2d.d: bindings/rust/build.rs
|
||||
|
||||
bindings/rust/build.rs:
|
|
@ -0,0 +1,35 @@
|
|||
/home/coding-agent/dev/tree-sitter/tree-sitter-ini/target/debug/deps/libaho_corasick-10b09bbd2eca3c7e.rmeta: /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/lib.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/macros.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/ahocorasick.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/automaton.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/dfa.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/nfa/mod.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/nfa/contiguous.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/nfa/noncontiguous.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/mod.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/api.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/ext.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/pattern.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/rabinkarp.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/teddy/mod.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/teddy/builder.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/teddy/generic.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/vector.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/mod.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/alphabet.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/buffer.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/byte_frequencies.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/debug.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/error.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/int.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/prefilter.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/primitives.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/remapper.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/search.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/special.rs
|
||||
|
||||
/home/coding-agent/dev/tree-sitter/tree-sitter-ini/target/debug/deps/libaho_corasick-10b09bbd2eca3c7e.rlib: /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/lib.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/macros.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/ahocorasick.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/automaton.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/dfa.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/nfa/mod.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/nfa/contiguous.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/nfa/noncontiguous.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/mod.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/api.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/ext.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/pattern.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/rabinkarp.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/teddy/mod.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/teddy/builder.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/teddy/generic.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/vector.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/mod.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/alphabet.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/buffer.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/byte_frequencies.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/debug.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/error.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/int.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/prefilter.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/primitives.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/remapper.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/search.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/special.rs
|
||||
|
||||
/home/coding-agent/dev/tree-sitter/tree-sitter-ini/target/debug/deps/aho_corasick-10b09bbd2eca3c7e.d: /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/lib.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/macros.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/ahocorasick.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/automaton.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/dfa.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/nfa/mod.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/nfa/contiguous.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/nfa/noncontiguous.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/mod.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/api.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/ext.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/pattern.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/rabinkarp.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/teddy/mod.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/teddy/builder.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/teddy/generic.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/vector.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/mod.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/alphabet.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/buffer.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/byte_frequencies.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/debug.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/error.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/int.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/prefilter.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/primitives.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/remapper.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/search.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/special.rs
|
||||
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/lib.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/macros.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/ahocorasick.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/automaton.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/dfa.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/nfa/mod.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/nfa/contiguous.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/nfa/noncontiguous.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/mod.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/api.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/ext.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/pattern.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/rabinkarp.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/teddy/mod.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/teddy/builder.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/teddy/generic.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/packed/vector.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/mod.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/alphabet.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/buffer.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/byte_frequencies.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/debug.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/error.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/int.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/prefilter.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/primitives.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/remapper.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/search.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aho-corasick-1.1.3/src/util/special.rs:
|
14
tree-sitter-ini/target/debug/deps/cc-df948ec87e50d7e7.d
Normal file
14
tree-sitter-ini/target/debug/deps/cc-df948ec87e50d7e7.d
Normal file
|
@ -0,0 +1,14 @@
|
|||
/home/coding-agent/dev/tree-sitter/tree-sitter-ini/target/debug/deps/libcc-df948ec87e50d7e7.rmeta: /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/lib.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/windows/mod.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/windows/find_tools.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/command_helpers.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/tool.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/target_info.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/tempfile.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/detect_compiler_family.c
|
||||
|
||||
/home/coding-agent/dev/tree-sitter/tree-sitter-ini/target/debug/deps/libcc-df948ec87e50d7e7.rlib: /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/lib.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/windows/mod.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/windows/find_tools.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/command_helpers.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/tool.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/target_info.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/tempfile.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/detect_compiler_family.c
|
||||
|
||||
/home/coding-agent/dev/tree-sitter/tree-sitter-ini/target/debug/deps/cc-df948ec87e50d7e7.d: /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/lib.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/windows/mod.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/windows/find_tools.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/command_helpers.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/tool.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/target_info.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/tempfile.rs /home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/detect_compiler_family.c
|
||||
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/lib.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/windows/mod.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/windows/find_tools.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/command_helpers.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/tool.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/target_info.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/tempfile.rs:
|
||||
/home/coding-agent/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cc-1.0.98/src/detect_compiler_family.c:
|
Binary file not shown.
Binary file not shown.
BIN
tree-sitter-ini/target/debug/deps/libcc-df948ec87e50d7e7.rlib
Normal file
BIN
tree-sitter-ini/target/debug/deps/libcc-df948ec87e50d7e7.rlib
Normal file
Binary file not shown.
BIN
tree-sitter-ini/target/debug/deps/libcc-df948ec87e50d7e7.rmeta
Normal file
BIN
tree-sitter-ini/target/debug/deps/libcc-df948ec87e50d7e7.rmeta
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
tree-sitter-ini/target/debug/deps/libregex-8e612725c91e213e.rlib
Normal file
BIN
tree-sitter-ini/target/debug/deps/libregex-8e612725c91e213e.rlib
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue