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.