https://github.com/vibraphone/pegtl-first-steps
Some simple examples demonstrating PEGTL
https://github.com/vibraphone/pegtl-first-steps
parser-library tutorial-code
Last synced: 9 months ago
JSON representation
Some simple examples demonstrating PEGTL
- Host: GitHub
- URL: https://github.com/vibraphone/pegtl-first-steps
- Owner: vibraphone
- License: bsd-2-clause
- Created: 2019-04-19T13:24:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-07T15:47:38.000Z (almost 7 years ago)
- Last Synced: 2025-01-15T12:07:58.895Z (about 1 year ago)
- Topics: parser-library, tutorial-code
- Language: C++
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# A Simple Introduction to PEGTL
This small set of examples is even more
simple than those which come with PEGTL.
```sh
git submodule update --init --recursive
mkdir build
(cd build; cmake -G Ninja ..; ninja)
./build/ex1 "{}"
./build/ex1 "{ }"
./build/ex2 "{a}"
./build/ex2 "{{}"
./build/ex3 "{___}"
```