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

Lean: add support for register definitions #894

Open
wants to merge 1 commit into
base: sail2
Choose a base branch
from

Conversation

lfrenot
Copy link
Collaborator

@lfrenot lfrenot commented Jan 17, 2025

No description provided.

@lfrenot
Copy link
Collaborator Author

lfrenot commented Jan 17, 2025

This does break the output of bitfields to some extent, since there is no support for derefs yet

@lfrenot lfrenot requested a review from javra January 17, 2025 15:32
Copy link

Test Results

   12 files  ±0     24 suites  ±0   0s ⏱️ ±0s
  750 tests +1    750 ✅ +1  0 💤 ±0  0 ❌ ±0 
2 493 runs  +1  2 493 ✅ +1  0 💤 ±0  0 ❌ ±0 

Results for commit bdd48ad. ± Comparison against base commit f87c292.

hardline;
string " get_";
idd;
colon;
Copy link
Collaborator

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 (";
Copy link
Collaborator

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
Copy link
Collaborator

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 ?

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

Successfully merging this pull request may close these issues.

2 participants