tree-sitter-teal
tree-sitter-teal copied to clipboard
A tree sitter grammar for Teal, a typed dialect of Lua
When I try building this, I get an error  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.