This is a prequel to ``. Conserved for historical reasons and as a Crystal code example.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
Philippe PITTOLI f41db48681 Adding sections. 4 years ago
samples Adding sections. 4 years ago
src Adding sections. 4 years ago
.gitignore initial commit: test grammars + tooling 4 years ago readme 4 years ago spec format parser v0.1 4 years ago Adding sections. 4 years ago
shard.yml Adding sections. 4 years ago

recipes parser

Parsing grammars requires the pegasus software:

toying with spec library

The parser is composed of two main files:

  •, lexer + grammar
  •, high-level parser to include in softwares

toying with new grammar

After downloading the pegasus̀ software.

# simple example for debug & chill
watch -d ./ test-grammars/simpletokens 2>/dev/null | grep -vE "(Token|^[)])"
../pegasus/bin/pegasus-crystal < test-grammars/simpletokens.json