You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@dorchard As discussed, this is a suggestion to add tests to help ensure consistency of the parser/printer.
Gen->Print->Parse
We could use QuickCheck to generate syntax trees, then 'pretty' show them in a canonical way and parse them. We would expect the parsed syntax trees to be the same (modulo some information such as position) as the original syntax tree.
File->Parse->Print
Assuming we had example programs in a 'pretty' canonical form, we would expect parsing the files, then printing them, to give the same text as the original file.
The text was updated successfully, but these errors were encountered:
@dorchard As discussed, this is a suggestion to add tests to help ensure consistency of the parser/printer.
Gen->Print->Parse
We could use QuickCheck to generate syntax trees, then 'pretty' show them in a canonical way and parse them. We would expect the parsed syntax trees to be the same (modulo some information such as position) as the original syntax tree.
File->Parse->Print
Assuming we had example programs in a 'pretty' canonical form, we would expect parsing the files, then printing them, to give the same text as the original file.
The text was updated successfully, but these errors were encountered: