Method: BCDice::Command::Parser#parse
- Defined in:
- lib/bcdice/command/parser.rb
#parse(source) ⇒ BCDice::Command::Parsed?
134 135 136 137 138 139 |
# File 'lib/bcdice/command/parser.rb', line 134 def parse(source) @lexer = Lexer.new(source, @notations) do_parse() rescue ParseError, ZeroDivisionError nil end |