mime::addr_route

 mime::addr_route

Defined in

Partial Call Graph (max 5 caller/called nodes):
mime::addr_routeaddr mime::addr_routeaddr (private) mime::addr_route mime::addr_route mime::addr_routeaddr->mime::addr_route mime::parselexeme mime::parselexeme (private) mime::addr_route->mime::parselexeme

Testcases:
No testcase defined.
Source code:
    # FRINK: nocheck
    variable $token
    upvar 0 $token state

    set state(route) @

    while {1} {
        switch -- [parselexeme $token] {
            LX_ATOM
                -
            LX_DLITERAL {
                append state(route) $state(buffer)
            }

            default {
                return -code 7  [format "expecting sub-route in route-part (found %s)"  $state(buffer)]
            }
        }

        switch -- [parselexeme $token] {
            LX_COMMA {
                append state(route) $state(buffer)
                while {1} {
                    switch -- [parselexeme $token] {
                        LX_COMMA {
                        }

                        LX_ATSIGN {
                            append state(route) $state(buffer)
                            break
                        }

                        default {
                            return -code 7  [format "expecting at-sign in route (found %s)"  $state(buffer)]
                        }
                    }
                }
            }

            LX_ATSIGN
                -
            LX_DOT {
                append state(route) $state(buffer)
            }

            LX_COLON {
                append state(route) $state(buffer)
                return
            }

            default {
                return -code 7  [format "expecting colon to terminate route (found %s)"  $state(buffer)]
            }
        }
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: