This is a prequel to `package.mk`. 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 86a193f69a
parser: v0.3
5 years ago
grammar parser: v0.3 5 years ago
samples spec format parser v0.1 5 years ago
src parser: v0.3 5 years ago
.gitignore initial commit: test grammars + tooling 5 years ago
README.md readme 5 years ago
build.sh spec format parser v0.1 5 years ago
debug.cr parser: v0.3 5 years ago
shard.yml parser: v0.3 5 years ago

README.md

recipes parser

Parsing grammars requires the pegasus software: https://github.com/DanilaFe/pegasus

toying with spec library

The parser is composed of two main files:

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

toying with new grammar

After downloading the pegasus̀ software.

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