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

Summary\n does not parse cleanly. Verified with (source_file [0, 0] - [6, 0]

(definition [0, 0] - [0, 12] (typed_variable [0, 0] - [0, 12] type: (type [0, 0] - [0, 3] (primitive_types [0, 0] - [0, 3])) name: (word [0, 4] - [0, 6]) (expression [0, 9] - [0, 12] (number [0, 9] - [0, 12])))) (comment [0, 24] - [1, 12] (any [0, 25] - [1, 12])) (expression [1, 12] - [1, 20] (string [1, 12] - [1, 20])) (comment [1, 24] - [1, 46] (any [1, 25] - [1, 46])) (expression [1, 46] - [1, 54] (string [1, 46] - [1, 54])) (type [2, 0] - [2, 5] (gate_shorthand_types [2, 0] - [2, 5])) (ERROR [2, 5] - [2, 7] (ERROR [2, 5] - [2, 7])) (expression [2, 8] - [2, 13] (word [2, 8] - [2, 13])) (comment [2, 24] - [6, 0] (any [2, 25] - [6, 0]))) examples/all.gate Parse: 0.06 ms 5289 bytes/ms (ERROR [2, 5] - [2, 7]):\n\n\nexamples/all.gate\tParse: 0.07 ms\t(ERROR [2, 5] - [2, 7])\n\n\nThe file exercises:\n- / array types\n- dictionary literals\n- nested arrays\n\nNone of these are implemented in . The rule only covers , , and . Array/dict/collection syntax is present only as commented-out notes.\n\n## Expected\nCollections parse into typed AST nodes (e.g. , , ) so the transpiler can emit / GDScript.\n\n## Files\n- — rule\n- — reproducer

1/1
Type
Bug
Priority
Major
Assignees
Not assigned
Issue Votes (0)
Watchers (1)
Reference
gate/tree-sitter-gate#14
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover