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

Define lexemes in terms of other lexemes #465

Open
bendrissou opened this issue Jun 25, 2024 · 1 comment
Open

Define lexemes in terms of other lexemes #465

bendrissou opened this issue Jun 25, 2024 · 1 comment

Comments

@bendrissou
Copy link
Contributor

Hi,

It's not clear to me from the documentation whether it's possible to define lexemes in terms of other lexemes.

E.g.

[0-9] "DIGIT"
[a-zA-Z] "LETTER"
{LETTER}({LETTER}|{DIGIT})* "ID"

Is this Lex feature supported by grmtools?

Thank you.

@ltratt
Copy link
Member

ltratt commented Jun 25, 2024

It's not supported. I would not object to a PR which added it!

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

No branches or pull requests

2 participants