working on new grammar

This commit is contained in:
Greg Shuflin 2024-04-21 03:01:13 -07:00
parent ba4ccfe6bf
commit 8cde20641b
1 changed files with 9 additions and 1 deletions

View File

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