-
Notifications
You must be signed in to change notification settings - Fork 36
Model with entry point #699
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
base: main
Are you sure you want to change the base?
Conversation
28d6391 to
f45fee9
Compare
| (entry_point, Array.of_list model) | ||
| in | ||
| let entry_point = | ||
| if Option.is_none entry_point then model_entry_point else entry_point |
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.
Does it make sense to keep the --entry-point argument for owi replay? Couldn't we remove it now? And if not, what happen when they are both defined?
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.
I guess not, I'll remove the option
| val model_of_json : string -> (string option * Smtml.Model.t) Result.t | ||
|
|
||
| val model_of_scfg : string -> Smtml.Model.t Result.t | ||
| val model_of_scfg : string -> (string option * Smtml.Model.t) Result.t |
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.
This could be a string * Smtml.Model.t now that the entry point is mandatory, right?
| in | ||
| { model with children = model.children @ ep } | ||
| | None -> model | ||
| in |
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.
Do you think we could put the entry point first in the output model (followed by the symbols)? I find it easier to read this way
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.
sure, i'll do that
No description provided.