tree-sitter-kotlin
tree-sitter-kotlin copied to clipboard
Kotlin grammar for Tree-sitter
the following code ```kotlin class Class { fun method() { return listOf( A(), B() ) } } ``` during parsing becomes ``` (source_file (class_declaration (type_identifier) (class_body (function_declaration (simple_identifier) (function_body (statements...
So for instance, we may be dealing with a case like: ``` class Foo() : Bar( x = "hi", y = "bye", ) { // ... } ``` Currently, we...
Given the source code: ``` val foo: Int? ``` tree-sitter-kotlin produces: ``` source_file (0, 0) - (1, 0) property_declaration (0, 0) - (0, 13) val (0, 0) - (0, 3)...
`$companyId` is not recognized as variable in the above image.
This adds a Makefile and bindings to more easily build static/dynamic libraries for use in C-based languages. The implementation is intended to be as generic as possible, to make for...
Currently if you try to parse a hexadecimal unsigned long it gives an error and returns the wrong tree. For example parsing `0xfff0000000000000UL` returns ``` (source_file (ERROR (hex_literal) (simple_identifier))) ```...
- Use local import for `parser.h` - Use the new built-in array API - Define `DELIMITER_LENGTH` constant - Mark simple functions as `inline` - Remove functions that are only used...
Currently, the implementation has to be [updated manually](https://github.com/fwcd/tree-sitter-kotlin/commit/796ffe7a2c8eb1d54be1467cd73cff8bc5d439d2) whenever the built language version of the parser is no longer compatible with the bundled tree-sitter version, otherwise the web app will...
https://kotlinlang.org/docs/fun-interfaces.html Closes #87