amber-lang / amber-lang/tree-sitter-amber

`npm run generate` gives error

未关闭
#16 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
4
派生
4
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
compilers
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
需要澄清
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。