alex / alex/rply

Equivalent of `nonassoc` precedence

Aberta
#109 4 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Python
Estrelas
391
Forks
62
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

I want to be able to parse expressions like `-5` and `-(2 + 3 * 4)`. At the moment, I'm doing this with two separate rules, but since `-5` is the same as `-(5)` I want to be able to use the same rule for both situations as the parentheses in `-5` are implicit. In PLY, there is the `nonassoc` precedence, so I was wondering if such a thing also existed in RPLY?

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.