Show / Hide Table of Contents

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 Source

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

Extension Methods

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