module Fonte module Parsers grammar Address include Number rule ip octet "." octet "." octet "." octet port:port? end rule octet [0-9] 1..3 end rule port ":" integer { def value integer.value end } end end end end