Giter Site home page Giter Site logo

prophet1906 / tree-sitter-cds Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cap-js-community/tree-sitter-cds

0.0 0.0 0.0 2.85 MB

CAP CDS grammar for tree-sitter.

License: Apache License 2.0

Shell 3.72% JavaScript 61.16% C++ 0.84% Scheme 9.84% Python 3.05% C 3.49% Lua 2.32% Go 0.89% Rust 4.22% Swift 2.17% Makefile 5.12% Dockerfile 2.83% Vim Script 0.07% CAP CDS 0.27%

tree-sitter-cds's Introduction

REUSE status

tree-sitter-cds

About this project

CAP CDS grammar for tree-sitter.

Tree-sitter is a parser generator tool and an incremental parsing library. It can build a concrete syntax tree for a source file and efficiently update the syntax tree as the source file is edited. Tree-sitter aims to be:

You can use tree-sitter-cds to highlight CAP CDS files in Neovim and to query the concrete syntax tree of CDS files.

This project followed the instructions of the tree-sitter guide.

Screenshot of Neovim. A CDS file is opened and has proper syntax highlighting.

Documentation

Please refer to the docs/ folder. It contains:

Download and Installation

If you want to use tree-sitter-cds in Neovim for syntax highlighting, please see Neovim Support for an installation guide.

Documentation on Node.js and Rust language bindings is work-in-progress.

Requirements

If you want to use tree-sitter-cds in Neovim for syntax highlighting, please see Neovim Support for requirements.

For local development setup, see Development Docs.

How to obtain support

This project is open to feature requests/suggestions, bug reports etc. via GitHub issues.

Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our Contribution Guidelines as well as our development documentation.

Features & Roadmap

This project contains a tree-sitter grammar for CAP CDS.

The main goal of this project it to provide syntax highlighting, e.g. for Neovim.

It is not a 100% CAP CDS compatible parser. There are places that this grammar can't parse properly, yet. There is also no error reporting by tree-sitter and the syntax tree can change any time, as this project is not complete, yet.

In the future, we may try to add support for stack-graphs by GitHub.

Code of Conduct

We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its Code of Conduct at all times.

Licensing

Copyright 2024 SAP SE or an SAP affiliate company and tree-sitter-cds contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.

tree-sitter-cds's People

Contributors

bugwelle avatar renovate[bot] avatar qmacro avatar david-kunz avatar sap-ospo-bot avatar ospo-bot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.