https://github.com/khtdr/rubidu
https://github.com/khtdr/rubidu
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/khtdr/rubidu
- Owner: khtdr
- Created: 2018-06-14T01:33:36.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-27T04:35:24.000Z (about 8 years ago)
- Last Synced: 2025-04-14T00:13:13.840Z (over 1 year ago)
- Language: Ruby
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Installation
```bash
curl -O 'https://raw.githubusercontent.com/khtdr/rubidu/master/dist/rubidu'
chmod +x ./rubidu
./rubidu --test && ./rubidu -h
```
# Self Describing Grammar
root: *(ws assignment ws).
assignment: identifier ws ":" ws +term ?block "." .
identifier : +'-ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890'.
ws : *' \t\r\n'.
block: ?("{\n" >"\n}" "\n}" ws).
term : factor ?"!" ws.
factor: ?'*+?' [identifier string chars until seq any].
string: '"' >'"' '"'.
chars : "'" >"'" "'".
until:">"[string chars].
seq: "(" ws +term ")".
any: "[" ws +term "]".