-
Notifications
You must be signed in to change notification settings - Fork 122
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
Lean: add support for register definitions #894
base: sail2
Are you sure you want to change the base?
Conversation
This does break the output of bitfields to some extent, since there is no support for derefs yet |
hardline; | ||
string " get_"; | ||
idd; | ||
colon; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space needed before the colon
idd; | ||
colon; | ||
space; | ||
string "SailM ("; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The brackets for the argument of SailM
are not needed because whoever produces a composite term should be in charge of bracketing (in this case doc_typ
).
|
||
open Sail | ||
|
||
class MonadReg where |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the register state be part of the state that's carried by SailM
? That would give us the getter and setter "for free" instead? Or do we want to keep this flexible? What's your opinion on this, @bacam ?
No description provided.