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.
Summary
examples/all.gatedoes not parse cleanly. Verified with:Output:
The file exercises:
int[]/vec2i[]array types{str, int}dictionary literalsint[][]nested arraysNone of these are implemented in
grammar.js. Thetyperule only coversprimitive_types,packed_types, andgate_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 emitArray[...]/Dictionary[...]GDScript.Files
grammar.js—typeruleexamples/all.gate— reproducer