samvv / mage

A work-in-progress lexer/parser generator for a growing number of languages
1 stars 1 forks source link

Implement custom types for tokens that are not static #4

Open samvv opened 6 months ago

samvv commented 6 months ago

The default type for these nodes can be something like a ByteString, which just takes the literal text of the token.

samvv commented 1 month ago

Partially solved: the current system allows for token rules to have a special type name, which is translated to a type inside of the target language.