amber-lang / amber-lang/tree-sitter-amber
`npm run generate` gives error
- Dominant language
- JavaScript
- Stars
- 4
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
Hey @Mte90 ,
I'm trying to use Treesitter for Amber
When I run `npm run generate` I get this error
```bash
npm run generate
> tree-sitter-amber@1.0.0 generate
> ./node_modules/.bin/tree-sitter generate
Unresolved conflict for symbol sequence:
'mv' _expression '[' _expression ']' • '(' …
Possible interpretations:
1: 'mv' _expression (array '[' _expression ']') • '(' …
2: 'mv' _expression (subscript '[' _expression ']') • '(' …
Possible resolutions:
1: Specify a higher precedence in `subscript` than in the other rules.
2: Specify a higher precedence in `array` than in the other rules.
3: Add a conflict for these rules: `subscript`, `array`
```
What do I do ?
Thank you
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running `npm run generate` and inspect the grammar rules named in the Tree-sitter error, `subscript` and `array`. Determine how the conflict is resolved, then rerun generation and confirm that the command completes without the unresolved-conflict error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100