tree-sitter-teal icon indicating copy to clipboard operation
tree-sitter-teal copied to clipboard

A tree sitter grammar for Teal, a typed dialect of Lua

Results 7 tree-sitter-teal issues
Sort by recently updated
recently updated
newest added

When I try building this, I get an error ![image](https://user-images.githubusercontent.com/45307955/173197523-97f1b593-1641-468c-b412-f34d05640bd6.png) This seems to be a volta error, which is caused by not having a node_modules folder

Depends on #13 The inlining done previously does not actually work - there is never a `scope` field. Functions without an explicit scope would also not be parsed correctly at...

A `record_entry` is: ``` record_entry: $ => choice( seq( field("key", $.identifier), ":", field("type", $._type) ), seq( "[", field("string_key", $.string), "]", ":", field("type", $._type) ), // TODO: there has to be...

As alluded to in #9, the parser could really do with more fields. For example, the current record definition is ``` _record_def: $ => seq( "record", field("name", $.identifier), optional($.typeargs), $.record_body...

As far as I can tell, the parser seems fairly complete Could you publish the rust bindings on crates.io, so other people can easily depend on it?

Take the following Teal script: ```teal print((((('Hello world!'))))) ``` This is valid Teal and valid Lua, in fact after compiling the Teal code to Lua I get the same code....

My github actions knowledge is shoddy at best and my tree-sitter knowledge has atrophied so I'm not sure how people expect releases to be formatted.