< Dice‎ | Roller
Revision as of 19:11, 27 April 2017 by Skizzerz (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Roller.Parse Method (String, RollerConfig)

From DiceRoller Documentation

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.