Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby markup parser for custom markup language

I am looking for a Ruby markup parser (or helper) to convert a custom markup language to HTML. Something like Decoda does in the PHP world (see $code->addMarkup() function). Is there a good tool in the Ruby world?

like image 666
Zardoz Avatar asked Feb 25 '26 22:02

Zardoz


1 Answers

Happy to be educated otherwise, but I'm afraid I don't think such a thing exists - someone would have had to have needed a parser (or parser-generator, perhaps) for multiple unspecified future markup languages. Probably not a need that's been experienced very often. Or ever.

However, if your language is fairly regular, I don't see that it's going to be too much more of a task to build your own parser using tools that are available.

Some places you might start:

  • Treetop
  • Dhaka
  • Racc (distributed in the Ruby standard library)
like image 101
Mike Woodhouse Avatar answered Feb 27 '26 16:02

Mike Woodhouse



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!