GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Implement tuple projection shorthand · Issue #34 · Seddryck/Expressif.Syntax Closed Labels DescriptionDescriptionImplement tuple projection shorthand as first-class syntax. Expressif uses Examples: The shorthand may appear anywhere an expression is accepted, including pipelines and function arguments. Syntax modelAdd a dedicated syntax node: The exact representation may differ, but the CST must distinguish tuple projection from an ordinary function call. For example: should conceptually produce: and: should produce: SyntaxProjection from the beginning uses: Projection from the end uses:
The parser only recognizes the syntax. Whether an index is valid for a particular tuple belongs to semantic validation. Usage in expressionsExamples: Tuple projection should compose with the same pipeline and argument grammar as other expressions. Distinction from other access syntaxTuple projection is distinct from record access and original-input references. Examples: The grammar must preserve these as different syntax nodes. No lowering in the parserThe current Expressif parser lowers tuple projection shorthand to a semantic function such as The Tree-sitter grammar should not do that. For example: must remain Likewise, end-relative projection should be interpreted by the semantic layer rather than rewritten by the grammar. WhitespaceWhitespace around the complete shorthand is insignificant: Whitespace inside the shorthand is not allowed: Out of scopeDo not implement or special-case:
TestsAdd Tree-sitter corpus tests covering at minimum:
Tests should assert CST structure, not only parse success. Architectural constraintTuple projection shorthand is syntax, not a function call. The parser must preserve the user's source form. Any normalization to ActivityMetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |