Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiceRoll ¶
type DiceRoll struct {
Count int // The 'X' part. Defaults to 1 if not present.
Sides int // The 'Y' part.
}
type Modifier ¶
type Modifier struct {
Value int
}
type ParsedExpression ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser holds the state of the parsing process.
func (*Parser) Parse ¶
func (p *Parser) Parse() (*ParsedExpression, error)
Parse main entry point to parsing
Click to show internal directories.
Click to hide internal directories.