{"id":28466494,"url":"https://github.com/1c-syntax/tree-sitter-onescript","last_synced_at":"2025-06-17T04:39:35.521Z","repository":{"id":296873917,"uuid":"994874181","full_name":"1c-syntax/tree-sitter-onescript","owner":"1c-syntax","description":"OneScript language grammar for Tree-Sitter","archived":false,"fork":false,"pushed_at":"2025-06-02T16:24:32.000Z","size":128,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-03T03:56:57.223Z","etag":null,"topics":["onescript","parser","tree-sitter"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/1c-syntax.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-02T16:01:46.000Z","updated_at":"2025-06-03T00:34:28.000Z","dependencies_parsed_at":"2025-06-03T03:57:05.335Z","dependency_job_id":"0e67f8e7-e2ca-4911-b916-3f2e3092fbb8","html_url":"https://github.com/1c-syntax/tree-sitter-onescript","commit_stats":null,"previous_names":["1c-syntax/tree-sitter-onescript"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/1c-syntax/tree-sitter-onescript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1c-syntax%2Ftree-sitter-onescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1c-syntax%2Ftree-sitter-onescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1c-syntax%2Ftree-sitter-onescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1c-syntax%2Ftree-sitter-onescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1c-syntax","download_url":"https://codeload.github.com/1c-syntax/tree-sitter-onescript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1c-syntax%2Ftree-sitter-onescript/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260294188,"owners_count":22987600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["onescript","parser","tree-sitter"],"created_at":"2025-06-07T07:00:38.015Z","updated_at":"2025-06-17T04:39:35.508Z","avatar_url":"https://github.com/1c-syntax.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![crates.io](https://img.shields.io/crates/v/tree-sitter-onescript?label=crates.io)\n![build](https://github.com/1c-syntax/tree-sitter-onescript/actions/workflows/ci.yml/badge.svg)\n\n# tree-sitter-onescript\n\n**tree-sitter-onescript** — полноценная грамматика [Tree-sitter](https://tree-sitter.github.io/), для языка [OneScript](https://github.com/EvilBeaver/OneScript).\n\n---\n\n## Быстрый старт\n\n```bash\n# 0. Требования\n#    ───────────\n#    • Rust ≥ 1.77 (edition 2024)  • tree-sitter-cli ≥ 0.25  • Node.js — по желанию\n\n# 1. Подключаем зависимость\ncargo add tree-sitter-onescript      # или path-зависимость, пока не выложено на crates.io\n\n# 2. Мини-пример на Rust\nuse tree_sitter::{Parser};\nuse tree_sitter_onescript::language;\n\nlet mut parser = Parser::new();\nparser.set_language(language()).unwrap();\nlet tree = parser.parse(\"Перем x; x = 1;\", None).unwrap();\nprintln!(\"{}\", tree.root_node().to_sexp());\n```\n\n# Сборка из исходников\n\n```bash\ngit clone https://github.com/tree-sitter-onescript\ncd tree-sitter-onescript\ntree-sitter generate   # генерирует src/parser.c\ncargo build            # собирает rlib + cdylib\n\n```\n\n# Структура проекта\n\n```bash\n├── grammar.js          # грамматика\n├── src/\n│   ├── parser.c        # автогенерируемый C-парсер\n│   └── lib.rs          # безопасная обёртка (pub fn language())\n└── test/corpus         # corpus-тесты (tree-sitter test …)\n\n```\n\n# TODO\n\n* `highlights.scm`\n\n* Автоматическое тестирование на популярных библиотеках OneScript","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1c-syntax%2Ftree-sitter-onescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1c-syntax%2Ftree-sitter-onescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1c-syntax%2Ftree-sitter-onescript/lists"}