Giter Site home page Giter Site logo

Comments (2)

tamasvajk avatar tamasvajk commented on July 23, 2024

I tried parsing this input with the latest version of the grammar in the master branch, and I got the following. The tree seems to match the one returned by the playground.

❯ tree-sitter parse a.cs
(compilation_unit [0, 0] - [0, 89]
  (using_directive [0, 0] - [0, 13]
    name: (identifier [0, 6] - [0, 12]))
  (class_declaration [0, 14] - [0, 89]
    name: (identifier [0, 20] - [0, 27])
    body: (declaration_list [0, 28] - [0, 89]
      (method_declaration [0, 30] - [0, 87]
        (modifier [0, 30] - [0, 36])
        type: (predefined_type [0, 37] - [0, 41])
        name: (identifier [0, 42] - [0, 46])
        parameters: (parameter_list [0, 46] - [0, 48])
        body: (block [0, 49] - [0, 87]
          (expression_statement [0, 51] - [0, 85]
            (invocation_expression [0, 51] - [0, 84]
              function: (member_access_expression [0, 51] - [0, 68]
                expression: (identifier [0, 51] - [0, 58])
                name: (identifier [0, 59] - [0, 68]))
              arguments: (argument_list [0, 68] - [0, 84]
                (ERROR [0, 69] - [0, 71]
                  (escape_sequence [0, 69] - [0, 71]))
                (argument [0, 71] - [0, 76]
                  (identifier [0, 71] - [0, 76]))
                (argument [0, 78] - [0, 83]
                  (identifier [0, 78] - [0, 83]))))))))))
a.cs    0 ms    (ERROR [0, 69] - [0, 71])

from tree-sitter-c-sharp.

damieng avatar damieng commented on July 23, 2024

We should probably publish a new version. I can do the GitHub and npm side but as for the Rust crate... 🤷🏻

from tree-sitter-c-sharp.

Related Issues (20)

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.