Skip to content

Commit fce82e9

Browse files
committed
Add a README about using the examples
1 parent 0174da8 commit fce82e9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

examples/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Run the Examples
2+
3+
To try these examples out locally, you can run the following terminal commands:
4+
5+
```bash
6+
git clone https://github.com/elm/parser.git
7+
cd parser/examples
8+
elm reactor
9+
```
10+
11+
After that, go to [`http://localhost:8000`](http://localhost:8000) and click on
12+
the example you want to see.
13+
14+
15+
## Exercises
16+
17+
- Have a user input feed into the `Math` parser. Show people the results live.
18+
- Expand the `Math` parser to cover `-` and `/` as well.
19+
- Handle more escape characters in `DoubleQuotedString`. Maybe hexidecimal
20+
escapes like `\x41` and `\x0A` that are possible in JavaScript.

0 commit comments

Comments
 (0)