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

Drive Pratt and unparse/decompile code from one common precedence table. #205

Open
github-actions bot opened this issue Feb 10, 2024 · 0 comments
Open
Labels

Comments

@github-actions
Copy link

// TODO: drive Pratt and this from one common precedence table.

        // directly on http://en.cppreference.com/w/cpp/language/operator_precedence
        // Should be kept in sync with the pratt parser in `parse.rs`
        // Starting from lowest to highest precedence...
        // TODO: drive Pratt and this from one common precedence table.
        let cpp_ref_prep = match self {
            Expr::Scatter(_, _) | Expr::Assign { .. } => 14,
            Expr::Cond { .. } => 13,
@github-actions github-actions bot added the todo label Feb 10, 2024
@rdaum rdaum changed the title drive Pratt and this from one common precedence table. Drive Pratt and unparse/decompile code from one common precedence table. Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants