Treesitter (OD-1180)
ShalokShalom opened 3 years ago

You probably already considered this, I just open this issue for future references, and in case it is nevertheless an option.

Antlr supports 10 languages There is an alternative that supports a lot more, and the project is much younger.

Its called Treesitter, and you probably already know it: https://tree-sitter.github.io/tree-sitter/#parsers

Do you plan on upgrading to treesitter?

  • Robin Shen commented 3 years ago

    Never heard of it actually. OneDev uses ANTLR mainly because it is written with Java and can run inside same JVM which is fast and easy to call. It does support many languages, just that OneDev currently supports a subset of them.

  • ShalokShalom commented 3 years ago

    Ah, I confused Antlr saying '10 target languages' with bindings, I guess.

    The grammars repo actually shows an impressive list of languages, true.

    Treesitter supports Java onyl via a binding and I do understand that under these circumstances, it still provides little value.

    Particularly since not more languages are supported.

    The F# team is about to write a treesitter implementation (since Helix and other editors are using it exclusively or increasingly)

    So now I have to see, how to get Antlr support for F# ??

    Thanks a lot ??

  • ShalokShalom changed state to 'Closed' 3 years ago
    Previous Value Current Value
    Open
    Closed
  • ShalokShalom commented 3 years ago

    Solved

  • Robin Shen commented 3 years ago

    So now I have to see, how to get Antlr support for F#

    Seems that antlr does not have grammar for F#. Hope someone can provide one.

issue 1/1
Type
Improvement
Priority
Normal
Assignee
Issue Votes (0)
Watchers (4)
Reference
OD-1180
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover