IPv4/IPv6 grammar for Treetop [ruby] [ip] [Treetop]

snippets.dzone.com0 comments

This Treetop grammar allows parsing any valid IPv4 or IPv6.

#!/usr/bin/env tt
#
# Author:: Iñaki Baz Castillo
# Copyright:: 2008 Iñaki Baz Castillo
# License:: Public Domain
#
# ABNF syntax for IPv4 and IPv6…

Covered by (1)

Treetop Goodies

djberg96.livejournal.com0 comments

POD grammar: http://snippets.dzone.com/posts/show/5690IP v4/6 grammar: http://snippets.dzone.com/posts/show/5701

Popular Posts From This Blog

PHP clean string for mysql [mysql] [php] [string] [clean]

snippets.dzone.com4 comments

 bookmark this on del.icio.us
-
posted
by andrewok
to
mysql
php
- more about this bookmark…

Array to Hash in Ruby [ruby] [hash] [array]

snippets.dzone.com2 comments

 bookmark this on del.icio.us
-
posted
by mskulason
to
ruby
- more about this bookmark…

rdoc the edge rails source [ruby] [rails] [rdoc]

snippets.dzone.com1 comments

 bookmark this on del.icio.us
-
posted
by crafterm
to
rdoc
rails
ruby
- more about this bookmark…

Ruby: Strip html tags from a string

snippets.dzone.com1 comments

str = “This and that and and the other?”
puts str.gsub(/<\/?[^>]*>/, "")

Useful Rake tasks for Subversion setup with Rails [rails] [rubyonrails] [rake] [svn] [configure_for_svn]

snippets.dzone.com1 comments

 bookmark this on del.icio.us
-
posted
by diec123
to
ruby
rails
rake
svn
- more about this bookmark…

Get More Top Stories On Ruby on Rails Weekly - Monthly

Don't see your favorite Ruby on Rails blog? Recommend it now!

Help us monitor all blogs that cover Ruby on Rails. If you don't see your favorite blog, just recommend it so we can review and add it into this list of the top Ruby on Rails bloggers.