Skip to content

Introduce nanopass pre-/postconditions#370

Open
masak wants to merge 4 commits into
masterfrom
masak/pre-post-conditions
Open

Introduce nanopass pre-/postconditions#370
masak wants to merge 4 commits into
masterfrom
masak/pre-post-conditions

Conversation

@masak

@masak masak commented Jul 16, 2021

Copy link
Copy Markdown
Owner

To-do before merging: rebase on a merged #383. Done.

Closes #368.

Work to be done:

  • Add preconditions
  • Add postconditions
  • Provide a simpler/more convenient/more extensible and changeable way to specify tree pattern matching
  • Make sure the error messages are excellent

@masak masak force-pushed the masak/pre-post-conditions branch from e9250fc to 0857ccf Compare July 28, 2021 14:06
@masak

masak commented Aug 13, 2021

Copy link
Copy Markdown
Owner Author

Note to self: have two different ways to flag up broken pre/postconditions: one for temporary stuff and one for permanent stuff. That way, the (excellent) error messages can indicate this and provide better situational guidance.

@masak masak force-pushed the masak/pre-post-conditions branch from 0857ccf to c09ac6a Compare August 14, 2021 08:20
@masak masak force-pushed the masak/pre-post-conditions branch 3 times, most recently from dcc51a6 to 4ce3396 Compare August 14, 2021 17:07
@masak masak marked this pull request as ready for review August 15, 2021 08:57
@masak masak force-pushed the masak/pre-post-conditions branch from 95479ec to f09324c Compare October 7, 2021 14:48
masak added 4 commits October 31, 2021 21:59
The 'translate' method now calls 'do_translate', which is the
abstract method that the deriving classes override.
All the preconditions pass, but I'm going to let that slide for now.
Soon enough, these will get tested in a natural way as the compiler
passes evolve.
No need to use two words.
@masak masak force-pushed the masak/pre-post-conditions branch from f09324c to 1468a7d Compare October 31, 2021 14:26
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.

Add precondition/postcondition testing to the compiler's nanopasses

1 participant