Skip to content

Add tuple literals#136

Merged
istathar merged 1 commit into
technique-lang:mainfrom
istathar:tuple-literals
Jul 7, 2026
Merged

Add tuple literals#136
istathar merged 1 commit into
technique-lang:mainfrom
istathar:tuple-literals

Conversation

@istathar

@istathar istathar commented Jul 7, 2026

Copy link
Copy Markdown
Member

Added support for tuple literals in expressions, and improved error messages if incorrectly written tuples are encountered. This raised some complexity as previously the parser handled arguments to a function with a bespoke local scanner; implementing tuple literals meant dealing with these actually being a series of expressions properly.

Fixed a bug when reading multiline-literals in expressions.

Removed the (frankly poorly named) ParsingError::InvalidLiteral (which was actually just about unit literals) as a new ParsingError::InvalidTuple overlaps and subsumes the original case.

@istathar istathar self-assigned this Jul 7, 2026
@istathar

istathar commented Jul 7, 2026

Copy link
Copy Markdown
Member Author

Implements

@istathar istathar merged commit 7971ca3 into technique-lang:main Jul 7, 2026
1 check passed
@istathar istathar deleted the tuple-literals branch July 7, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant