-
Notifications
You must be signed in to change notification settings - Fork 55
Conversation
kach
commented
Aug 3, 2018
Signed-off-by: kach <[email protected]>
Fixpoint string_of_data (d : ergo_data) : string := | ||
let jsonify := ErgoData.data_to_json_string fmt_dq in | ||
let string_of_rec : list (string * ergo_data) -> string := | ||
fun rec => |
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.
Might want to try String.concat !
Lemma concat_test : String.concat ", " ("a"::"b"::"c"::nil) = "a, b, c".
Proof.
reflexivity.
Qed.
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.
okay, okay 72886c3
mechanization/Common/Utils/EData.v
Outdated
arr ""%string) | ||
++ "]"%string | ||
| dleft s => "some("%string ++ (string_of_data s) ++ ")"%string | ||
| dright _ => "none" |
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.
If so maybe fix ErgoLexer.mll (nil
-> none
) as well?
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.
See #321
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.
No, nil is currently unit. #321 needs to be fixed properly on its own.
Signed-off-by: kach <[email protected]>
@jeromesimeon travis is being wonky again, can we just disable that particular test? |
Signed-off-by: kach <[email protected]>