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.
|
3 years ago | |
---|---|---|
samples | 4 years ago | |
src | 3 years ago | |
.gitignore | 4 years ago | |
README.md | 4 years ago | |
build.sh | 4 years ago | |
debug.cr | 3 years ago | |
read-spec.cr | 3 years ago | |
shard.yml | 3 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 + grammarspec.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