Download user`s manual / tutorial (PDF file)

Transcript
Contents
1
Introduction
1
2
Parsing Expression Grammar
2
3
Getting started
4
4
The first steps
5
5
Adding semantics
6
6
Understanding the ”right-hand side”
10
7
Getting more realistic
10
8
Let’s go floating
12
9
What about backtracking?
13
10 A mouse, not a pack rat
14
11 Full arithmetic
15
12 Want a tree?
17
13 Calculator with memory
19
14 Get error handling right
20
15 Backtracking again
22
16 Input from file
23
17 Error recovery
25
18 Miscellaneous features
25
19 Deploying the parser
29
A Appendix: The grammar of Mouse PEG
30
B Appendix: Helper methods
31
C Appendix: Your parser class
32
D Appendix: Mouse tools
33