Interface IParser
Interface for a class that parses a string representing a dice expression into an DiceExpression instance. You might implement this if you need to implement a custom dice parser.
Namespace: GoRogue.DiceNotation
Assembly: GoRogue.dll
Syntax
public interface IParser
Methods
View SourceParse(string)
Parses the dice expression specified into a DiceExpression instance.
Declaration
DiceExpression Parse(string expression)
Parameters
Type | Name | Description |
---|---|---|
string | expression | The expression to parse. |
Returns
Type | Description |
---|---|
DiceExpression | An DiceExpression representing the given expression, that can "roll" the expression on command. |