Show / Hide Table of Contents

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 Source

Parse(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.

Extension Methods

Utility.Yield<T>(T)
  • View Source
In this article
Back to top Generated by DocFX