Closed Peefy closed 3 months ago
Hey @Peefy, could you brief about this issue some more?
@Vishalk91-4 What problem have you encountered? Do you have any error codes?
@Vishalk91-4 What problem have you encountered? Do you have any error codes?
I mean , I was just trying to add mixin statements
, so I added the required module in grammar.js
But it couldn't parse, on running the tests, so is there something I need to execute to add them into parser or onto node-types.json
@Vishalk91-4 What problem have you encountered? Do you have any error codes?
I mean , I was just trying to add
mixin statements
, so I added the required module ingrammar.js
But it couldn't parse, on running the tests, so is there something I need to execute to add them into parser or ontonode-types.json
@Vishalk91-4 I don't understand the problem. Did you encounter an error while executing tree-site generate
or tree-site test
? Can you provide more context?
@Vishalk91-4 What problem have you encountered? Do you have any error codes?
I mean , I was just trying to add
mixin statements
, so I added the required module ingrammar.js
But it couldn't parse, on running the tests, so is there something I need to execute to add them into parser or ontonode-types.json
@Vishalk91-4 I don't understand the problem. Did you encounter an error while executing
tree-site generate
ortree-site test
? Can you provide more context?
There was a tree-sitter-test
error
I am adding mixin_statement
, tried yestarday and today, and that error is fixed now
Will raise a PR adding remaining things
Enhancement
Syntax and test case supplementation for expression nodes. We need to supplement all expression syntax rules and refine test cases for KCL.
Reference
Grammar: https://github.com/kcl-lang/tree-sitter-kcl/blob/main/grammar.js Tests: https://github.com/kcl-lang/tree-sitter-kcl/tree/main/test/corpus