Formalizes the dice expression syntax. An anonymous parameter may be given to change the name of the formal syntax token which begins the sequence.
Wikitext
|
Output
|
{{dice expression}}
|
dice expression
→ roll
dice expression
→ dice expression
modifier
dice expression
→ {expression list
}group modifier
dice expression
→ dice expression
operator
dice expression
dice expression
→ function
(dice expression
)
roll
→ math expression
df
roll
→ math expression
dmath expression
math expression
→ integer
math expression
→ (math expression
operator
math expression
)
operator
→ +
operator
→ -
operator
→ *
operator
→ /
function
→ floor
function
→ ceil
function
→ round
function
→ abs
modifier
→ compare
modifier
→ fcompare
modifier
→ !compare
modifier
→ !!compare
modifier
→ !pcompare
modifier
→ rcompare
modifier
→ rocompare
modifier
→ keep-drop
modifier
→ s
modifier
→ sd
compare
→ ε
compare
→ integer
compare
→ >integer
compare
→ <integer
keep-drop
→ keep
keep-drop
→ keep
integer
keep-drop
→ drop
keep-drop
→ drop
integer
keep
→ k
keep
→ kh
keep
→ kl
drop
→ d
drop
→ dh
drop
→ dl
expression list
→ dice expression
, rest expression list
rest expression list
→ dice expression
rest expression list
→ expression list
group modifier
→ keep-drop
group modifier
→ compare
group modifier
→ fcompare
|