SymbolType to Str mapping #67

Closed
opened 2022-12-19 09:39:00 +00:00 by deavmi · 1 comment
Owner

What is it?

It would be nice to have a way to map between SymbolType and the associated string. Like an actual map because the current method is very much a manual situation of getSymbolType(string) and getCharacter(SymbolType) - I would much prefer this to be automated for the most part.

We may still need a getSymbolType(string) as some checks are not constant but everything else can fall back to the mapping structure (as there is no inverse map for SymbolType to identifiers).

## What is it? It would be nice to have a way to map between `SymbolType` and the associated string. Like an actual map because the current method is very much a manual situation of `getSymbolType(string)` and `getCharacter(SymbolType)` - I would much prefer this to be automated for the most part. We may still need a `getSymbolType(string)` as some checks are not constant but everything else can fall back to the mapping structure (as there is no inverse map for SymbolType to identifiers).
deavmi added the
parser
qol
labels 2022-12-19 09:39:27 +00:00
deavmi self-assigned this 2022-12-19 09:39:35 +00:00
deavmi added this to the Parser project 2022-12-19 09:39:38 +00:00
Author
Owner

Premature optimization.

Premature optimization.
deavmi removed this from the Parser project 2024-05-07 10:56:28 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tlang/tlang#67
No description provided.