diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-03-11 14:36:59 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-03-11 14:36:59 -0800 |
commit | 8aa1baa42c67b53ac30e0ce9961e367dfe435fd6 (patch) | |
tree | 724274ecacd8fbabb68b05d7731d13a331309984 | |
parent | 580df11b8c75984c6236001102e70c40db073235 (diff) | |
download | mu-8aa1baa42c67b53ac30e0ce9961e367dfe435fd6.tar.gz |
2761
-rw-r--r-- | Readme.md | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/Readme.md b/Readme.md index 281527ab..a1bd3d25 100644 --- a/Readme.md +++ b/Readme.md @@ -15,10 +15,10 @@ In this quest, Mu is currently experimenting with the following mechanisms: 1. New, testable interfaces for the operating system. For example, printing to screen explicitly takes a screen object, so it can be called on the real - screen, or on a fake inside tests, so that we can then check the expected - state of the screen at the end of a test. Here's a test for a little - text-mode chessboard program in Mu (delimiting the edge of the 'screen' - with periods): + screen, or on a fake screen inside tests, so that we can then check the + expected state of the screen at the end of a test. Here's a test for a + little text-mode chessboard program in Mu (delimiting the edge of the + 'screen' with dots): <br> <img alt='a screen test' src='html/chessboard-test.png'> <br>We're building up similarly *dependency-injected* interfaces to the keyboard, mouse, touch screen, disk, network, … @@ -184,7 +184,7 @@ can do things like check the value of specific locations in memory. You can also print to screen and check that the screen contains what you expect at the end of a test. For example, you've seen earlier how `chessboard.mu` checks the initial position of a game of chess (delimiting the edges of the screen with -periods): +dots): <img alt='screen test' src='html/chessboard-test.png'> @@ -228,17 +228,15 @@ something like this: --- -An alternative way to define factorial is by inserting *labels* and later +An alternative way to define factorial is by inserting labels and later inserting code at them. <img alt='literate programming' src='html/tangle.png'> (You'll find this version in `tangle.mu`.) -Any instruction without ingredients or products that starts with a -non-alphanumeric character is a label. By convention we use '+' to indicate -function-local label names you can jump to, and surround in '<>' global label -names for inserting code at. +By convention we use the prefix '+' to indicate function-local label names you +can jump to, and surround in '<>' global label names for inserting code at. --- |