Bromlife
O Markup Language parser library for Ruby.
Project links: repository
Installation
Prerequisites: bromlife C library.
Install the gem and add to the application’s Gemfile by executing:
bundle add bromlife
If bundler is not being used to manage dependencies, install the gem by executing:
gem install bromlife
Usage
require "bromlife" oml = "<! (+ a +) !>(+ b +)" # ^^^^^^^--- element # ^--- text parser = Bromlife::Parser.new(oml) element_e = parser.next element_e.label #=> "a" element_e.children[0] #=> "b"
Development
To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.
Contributing
Bug reports and pull requests are welcome.
License
Copyright © 2026 gemmaro
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see www.gnu.org/licenses/.