Add LATEST NEWS ON keyword to readme + documentation

This commit is contained in:
Linus Lee 2020-10-25 13:08:19 -04:00
parent 25bc958e04
commit 6a7db90a83
2 changed files with 8 additions and 0 deletions

View File

@ -40,6 +40,13 @@ We can print the result of any expression with `YOU WON'T WANT TO MISS`. You won
YOU WON'T WANT TO MISS 'Hello, World!' YOU WON'T WANT TO MISS 'Hello, World!'
``` ```
Conversely, we can take (string) input from the user with `LATEST NEWS ON`. This creates a prompt to ask the user of your incredible program about the latest news.
```
EXPERTS CLAIM age TO BE
LATEST NEWS ON 'What is your age?'
```
We define functions with `DISCOVER HOW TO functionName WITH arguments, like, this`. We can call them with the `OF` keyword. We define functions with `DISCOVER HOW TO functionName WITH arguments, like, this`. We can call them with the `OF` keyword.
``` ```

View File

@ -247,6 +247,7 @@ class App extends Component {
<li><code class="inline fixed block">END OF STORY</code> end a block scope</li> <li><code class="inline fixed block">END OF STORY</code> end a block scope</li>
<li><code class="inline fixed block">EXPERTS CLAIM...TO BE</code> declare or assign to a variable</li> <li><code class="inline fixed block">EXPERTS CLAIM...TO BE</code> declare or assign to a variable</li>
<li><code class="inline fixed block">YOU WON'T WANT TO MISS</code> print output</li> <li><code class="inline fixed block">YOU WON'T WANT TO MISS</code> print output</li>
<li><code class="inline fixed block">LATEST NEWS ON</code> take user input</li>
<li><code class="inline fixed block">TOTALLY RIGHT</code> true</li> <li><code class="inline fixed block">TOTALLY RIGHT</code> true</li>
<li><code class="inline fixed block">COMPLETELY WRONG</code> false</li> <li><code class="inline fixed block">COMPLETELY WRONG</code> false</li>
<li><code class="inline fixed block">PLUS / MINUS / TIMES / DIVIDED BY / MODULO</code> the obvious arithmetic operations</li> <li><code class="inline fixed block">PLUS / MINUS / TIMES / DIVIDED BY / MODULO</code> the obvious arithmetic operations</li>