[ragel-users] How to solve this Indetermination [SOLVED]

Iñaki Baz Castillo ibc at aliax.net
Wed Feb 18 22:33:29 UTC 2009


El Miércoles, 18 de Febrero de 2009, Iñaki Baz Castillo escribió:

> I really don't know why 'host' is set twice. I know that it's due to ( ":"
> port )?. In case it doesn't exist in the grammar then 'host' is set just
> once (with 'ibc:xxxx' value).
>
> Is there any trick to avoid this duplicate result? I've tryed everything I
> know with no success.
>
> Thanks a lot foir any help.

Trying and trying I've got a solution:

BEFORE:
  uri = "sip:" userinfo? host ( ":" port )? ;
NOW:
  uri = "sip:" ( userinfo? host ) <: ( ":" port )? ;


:)


-- 
Iñaki Baz Castillo




More information about the ragel-users mailing list