ballerina-platform / ballerina-lang

The Ballerina Programming Language
https://ballerina.io/
Apache License 2.0
3.66k stars 751 forks source link

[Parser] Incorrectly defined grammar for query-construct-type rule #23742

Closed pubudu91 closed 4 years ago

pubudu91 commented 4 years ago

In the spec, query-construct-type is defined as

query-construct-type :=
  table key-specifier
  | stream

But in the syntax tree descriptor, the stream keyword is missing. See https://github.com/ballerina-platform/ballerina-lang/blob/5f9d42acd1fc224e2c4ab8b2109696d4e62f3609/compiler/ballerina-treegen/src/main/resources/syntax_tree_descriptor.json#L2593

pubudu91 commented 4 years ago

Once this is fixed, need to use it to set the isStream field in query-expr