Custom symbol mapper framework #93

Closed
opened 2023-01-22 18:28:49 +00:00 by deavmi · 2 comments
Owner

What is this?

We want to provide the CodeEmitter() constructor a SymbolMapper kind-of object, whereby what is passed in is decided in Compiler by the chosen parameters, such that custom mappers can be used - maybe not just the md5 mapper but something else.

Todo

Add support for two new mappers:

  • HashMapper (the current one)
  • UnderMapper (underscore . replacement mapper)
    • Rany would like this

Framework:

  • Add framework SymbolMapper with an abstract string symbolMap(Entity)
## What is this? We want to provide the `CodeEmitter()` constructor a `SymbolMapper` kind-of object, whereby what is passed in is decided in `Compiler` by the chosen parameters, such that custom mappers can be used - maybe not just the `md5` mapper but something else. ### Todo Add support for two new mappers: - [x] HashMapper (the current one) - [x] UnderMapper (underscore `.` replacement mapper) * Rany would like this Framework: - [x] Add framework `SymbolMapper` with an `abstract string symbolMap(Entity)`
deavmi added the
qol
emit
labels 2023-01-22 18:32:12 +00:00
deavmi added this to the Basics milestone 2023-01-22 18:32:15 +00:00
deavmi added this to the Code emit project 2023-01-22 18:32:27 +00:00
deavmi self-assigned this 2023-01-22 18:32:31 +00:00
Author
Owner

Both have been implemented

Both have been implemented
Author
Owner

This is done

This is done
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#93
No description provided.