15 lines
229 B
JavaScript
15 lines
229 B
JavaScript
module.exports = grammar({
|
|
name: "TestLang",
|
|
rules: {
|
|
source_file: $ => repeat($._definition),
|
|
|
|
_definition: $ => choice(
|
|
$.function_definition
|
|
//TODO others
|
|
)
|
|
|
|
|
|
|
|
}
|
|
});
|