Tree-sitter grammar for Splunk Search Processing Language (SPL).
- Search and generating-command pipelines
- Commands, clauses, assignments, and expressions
- Subsearches, macro calls, dashboard tokens, and template tokens
- Strings, quoted fields, wildcards, relative times, and SPL comments
Install the pinned Tree-sitter CLI:
bun installRegenerate the parser and run the complete validation suite:
bun run generate
bun run checkRun individual checks when iterating:
bun run test
bun run parse:exampleGrammar changes belong in grammar.js. Commit the corresponding generated changes under src/ and add focused cases to test/corpus/. examples/security.spl provides a realistic parse target.