< Dice‎ | Roller

Difference between revisions of "Dice/Roller/Parse"

From DiceRoller Documentation
(Created page with "{{APIdoc|Roller.Parse Method (String, RollerConfig)}} Parses the diceExpr into an AST without evaluating it. {{ns}} == Syntax == <syntaxhighlight lang="C#"> internal static...")
 
(No difference)

Latest revision as of 19:11, 27 April 2017

Parses the diceExpr into an AST without evaluating it.

  • Namespace: Dice
  • Assembly: DiceRoller (in DiceRoller.dll)

Syntax

internal static DiceAST Parse(
    string diceExpr,
    RollerConfig config
)

Parameters

diceExpr
Type: System.String
Dice expression to parse.
config
Type: Dice.RollerConfig
Configuration to use. If null, the DefaultConfig is used instead.

Return Value

Type: Dice.AST.DiceAST

The parsed (but not yet evaluated) AST.