Sha256: b0b6cbdccd2d74b1f6c4ac8a54b850ab3ddcb0dfbb9a9749f9e5a31ccc982b46
Contents?: true
Size: 405 Bytes
Versions: 6
Compression:
Stored size: 405 Bytes
Contents
class Code class Parser class Group < Parslet::Parser rule(:name) { ::Code::Parser::Name.new } rule(:code) { ::Code::Parser::Code.new.present } rule(:opening_parenthesis) { str("(") } rule(:closing_parenthesis) { str(")") } rule(:group) do (opening_parenthesis >> code >> closing_parenthesis).as(:group) | name end root(:group) end end end
Version data entries
6 entries across 6 versions & 2 rubygems