Bug: all.gate fails to parse — collection types not implemented #16
Clément DELALANDE opened 2 days ago

Summary

examples/all.gate does not parse cleanly. Verified with:

tree-sitter parse --lib-path build/Release/tree_sitter_gate_binding.node --lang-name gate examples/all.gate

Output:

examples/all.gate	Parse:    0.07 ms	(ERROR [2, 5] - [2, 7])

The file exercises:

  • int[] / vec2i[] array types
  • {str, int} dictionary literals
  • int[][] nested arrays

None of these are implemented in grammar.js. The type rule only covers primitive_types, packed_types, and gate_shorthand_types. Collection syntax is present only as commented-out notes.

Expected

Collections parse into typed AST nodes (e.g. array_type, dictionary_type, nested_type) so the transpiler can emit Array[...] / Dictionary[...] GDScript.

Files

  • grammar.js — type rule
  • examples/all.gate — reproducer
1/1
Type
Bug
Priority
Major
Assignees
Not assigned
Issue Votes (0)
Watchers (1)
Reference
gate/tree-sitter-gate#16
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover