File: README.md

package info (click to toggle)
arpeggio 2.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,480 kB
  • sloc: python: 3,198; javascript: 54; sh: 19; makefile: 9
file content (29 lines) | stat: -rw-r--r-- 971 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Arpeggio's examples

In this folders you can find various examples.  Each folder contains an example
and the accompanying files.  Some of the examples are given in both
[Python](http://textx.github.io/Arpeggio/grammars/#grammars-written-in-python)
and [PEG
syntax](http://textx.github.io/Arpeggio/grammars/#grammars-written-in-peg-notations).
PEG syntax variant is named `*_peg.py` and the textual PEG grammar is defined in
separate `*.peg` file.

Each folder has its own README file with the description of the example.


To try out this examples clone this [git
repository](https://help.github.com/articles/cloning-a-repository/) or [download
source](https://github.com/textX/Arpeggio/archive/master.zip), unpack,
and run with python:

```bash
$ cd Arpeggio/examples
$ cd <example_name>
$ python <example_name>.py
```

Install Arpeggio before trying examples. To install Arpeggio read the [Getting
started guide](http://textx.github.io/Arpeggio/getting_started/).