working on new grammar

This commit is contained in:
Greg Shuflin 2024-04-21 03:01:13 -07:00
parent ba4ccfe6bf
commit 8cde20641b

View File

@ -1,6 +1,14 @@
module.exports = grammar({ module.exports = grammar({
name: "TestLang", name: "TestLang",
rules: { rules: {
source_file: $ => "hello" source_file: $ => repeat($._definition),
_definition: $ => choice(
$.function_definition
//TODO others
)
} }
}); });