USING: formatting http.client sequences strings kernel io math regexp unicode.case assocs generalizations ; IN: currency CONSTANT: coins { "TWD" "CNY" "JPY" "KRW" "HKD" "THB" "SGD" "IDR" "VND" "MYR" "PHP" "INR" "AED" "KWD" "AUD" "NZD" "USD" "CAD" "BRL" "MXN" "ARS" "CLP" "VEB" "EUR" "GBP" "RUB" "CHF" "SEK" "ZAR" } CONSTANT: calias H{ { "NTD" "TWD" } { "RMB" "CNY" } } CONSTANT: yahootw-url "http://tw.money.yahoo.com/currency_exc_result?amt=%d&from=%s&to=%s" CONSTANT: div-tag "