working on new grammar
This commit is contained in:
parent
ba4ccfe6bf
commit
8cde20641b
@ -1,6 +1,14 @@
|
||||
module.exports = grammar({
|
||||
name: "TestLang",
|
||||
rules: {
|
||||
source_file: $ => "hello"
|
||||
source_file: $ => repeat($._definition),
|
||||
|
||||
_definition: $ => choice(
|
||||
$.function_definition
|
||||
//TODO others
|
||||
)
|
||||
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user