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

support non-contextual keywords #46

Open
mmoskal opened this issue Nov 9, 2024 · 0 comments
Open

support non-contextual keywords #46

mmoskal opened this issue Nov 9, 2024 · 0 comments
Assignees

Comments

@mmoskal
Copy link
Member

mmoskal commented Nov 9, 2024

        // TODO
        // Find all non-contextual lexemes that are literals (we call them 'keywords')
        // This assumes that this is the only possible conflict in the lexer that we want to catch.
        // For every non literals lexeme, find all keywords that match it.
        // Replace the regex R for the lexeme with (R & ~(K1|K2|...)) where K1...
        // are the conflicting keywords.

    pub fn to_regex_vec(&self, limits: &mut ParserLimits) -> Result<RegexVec> {
@mmoskal mmoskal self-assigned this Nov 9, 2024
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

1 participant