Commit | Line | Data |
---|---|---|
3eb5d546 C |
1 | |
2 | The next trick is to substitute a "\" into a line. | |
3 | The same idea holds: simply double the backslash, | |
4 | but this time on the right side of the "s" command. | |
5 | ||
6 | In the file "prog.c", convert every | |
7 | 'n' | |
8 | into | |
9 | "\n" | |
10 | Re-write the file, and type "ready". | |
11 | #create Ref | |
12 | x = "\n"; | |
13 | y = 'nop'; | |
14 | z = 'lmn'; | |
15 | q = "n"; | |
16 | r = "\n"+1; | |
17 | s = "\n" - "\n"; | |
18 | #create prog.c | |
19 | x = 'n'; | |
20 | y = 'nop'; | |
21 | z = 'lmn'; | |
22 | q = "n"; | |
23 | r = 'n'+1; | |
24 | s = 'n' - 'n'; | |
25 | #user | |
26 | #cmp Ref prog.c | |
27 | #log | |
28 | #next | |
29 | 44.1i 10 |