Skip to content

New Proposal: Map Data Type#20

Merged
ali77gh merged 10 commits into
ali77gh:devfrom
rouzbehsbz:feat/map
Nov 30, 2025
Merged

New Proposal: Map Data Type#20
ali77gh merged 10 commits into
ali77gh:devfrom
rouzbehsbz:feat/map

Conversation

@rouzbehsbz

@rouzbehsbz rouzbehsbz commented Nov 29, 2025

Copy link
Copy Markdown
Contributor

This pull request introduces a new Map data type to the Chap language.
The syntax follows a hash-table–like structure, for example:

{"alpha":1 "bravo":"string" "charlie":true}

  • Added a new Map data type to the language core.
  • Implemented parsing and runtime support for map literals.
  • Introduced a new shared module for common collection operations.
  • Refactored list and map to use this shared functionality.

Moved and rewrote the following operations so they are now shared across both data types:

  • get
  • has
  • insert
  • remove

There is a known issue with parsing nested objects and arrays due to the current parsing approach

Motivation

Add more useless features to the language, following Chap’s ideology

@ali77gh ali77gh merged commit 4c1fd1f into ali77gh:dev Nov 30, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants