Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Latest commit

 

History

History
11 lines (10 loc) · 305 Bytes

grammar.md

File metadata and controls

11 lines (10 loc) · 305 Bytes

Dicer Grammar

digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" number = [0-9]+ dice = ([0-9])"d"[0-9]+ term = digit | dice unary = ("+" | "-") term multiplication = unary ("" | "/" multiplication) addition = multiplication ("+" | "-" component)* expression = addition