From 8aa1baa42c67b53ac30e0ce9961e367dfe435fd6 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 11 Mar 2016 14:36:59 -0800 Subject: 2761 --- Readme.md | 18 ++++++++---------- 1 file 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):
      a screen test
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): screen test @@ -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. literate programming (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. --- -- cgit 1.4.1-2-gfad0