Repository navigation
feat: add cbv simprocs to the language reference - #803
Conversation
| ```grammar | ||
| cbv_simproc ↓ | ||
| ``` | ||
|
|
||
| ```grammar | ||
| cbv_simproc ↑ | ||
| ``` | ||
|
|
||
| ```grammar | ||
| cbv_simproc cbv_eval | ||
| ``` |
There was a problem hiding this comment.
Why not make these the grammar of the phase specifier, rather than the attribute here? Then they can be hyperlink targets.
There was a problem hiding this comment.
Something like:
:::syntax cbv_simproc_phase (title := "Phase Specifiers for `cbv` Simprocs")
```grammar
cbv_eval
```
text
...
:::
There was a problem hiding this comment.
Hmm, I don't know how to make that work when phases are not a separate syntax node, without modifying the lean syntax definitions.
There was a problem hiding this comment.
Ah, yeah, if the attr syntax just has three productions, then we don't have a good way to do that.
For simp and grind, the modifications are their own parser, something like
syntax cbvMod := "↑" <|> "↓" <|> "cbv_eval"
syntax "cbv_simproc " cbvMod : attr
but if that's not how it's implemented here, we don't have a good way.
Co-authored-by: David Thrane Christiansen <[email protected]>
Co-authored-by: David Thrane Christiansen <[email protected]>
Co-authored-by: David Thrane Christiansen <[email protected]>
Co-authored-by: David Thrane Christiansen <[email protected]>
|
@david-christiansen I have resolved your round of comments - is there anything I should keep an eye on or is it okay to merge? |
|
I took the liberty of adding hyperlinks to the reduction types in the text. Once CI goes through, it's good to go. Thank you! |
|
Preview for this PR is ready! 🎉 (also as a proofreading version). built with commit ed5aff3. |
This PR adds information about
cbvsimprocs to the reference manual.