Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Rule/Model Rerwriting #1

Open
miho opened this issue Jul 24, 2018 · 0 comments
Open

Allow Rule/Model Rerwriting #1

miho opened this issue Jul 24, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@miho
Copy link
Owner

miho commented Jul 24, 2018

Currently, VMF models are directly derived from the grammar. Usually this is a good thing. But sometimes it is preferable to simplify the API and flatten the generated model. While some aspects, such as inheritance, can already be modified, many aspects are currently not modifiable. In addition to type-maps rof lexer rules like

TypeMap() {
    HEX_FLOAT_LITERAL    -> java.lang.Double via (
        'java.lang.Double.parseDouble(entry.getText())',
        'java.lang.Double.toHexString(entry)'
    )
}

we should probably allow parser rule maps.

@miho miho added the enhancement New feature or request label Jul 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant