Interface IParser
Interface for a class that parses a string representing a dice expression into an IDiceExpression 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
| Improve this Doc View SourceParse(String)
Parses the dice expression spcified into an IDiceExpression instance.
Declaration
IDiceExpression Parse(string expression)
Parameters
Type | Name | Description |
---|---|---|
System.String | expression | The expression to parse. |
Returns
Type | Description |
---|---|
IDiceExpression | An IDiceExpression representing the given expression, that can "roll" the expression on command. |