From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PhV1N-0007in-3d for garchives@archives.gentoo.org; Mon, 24 Jan 2011 22:36:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2ECBEE0AC2; Mon, 24 Jan 2011 22:34:02 +0000 (UTC) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by pigeon.gentoo.org (Postfix) with ESMTP id D811AE0AC2 for ; Mon, 24 Jan 2011 22:34:01 +0000 (UTC) Received: by wwi18 with SMTP id 18so4512409wwi.10 for ; Mon, 24 Jan 2011 14:34:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=A3X6jHt8PzOsJgjMLm1rdzOO0u3FYfw8whBrVwP1fpg=; b=XH9dNW16BD9bAeIjgA0RuXCQPbW11XUogJ3f46Yq0zycBYVLXCuewJB+5x2mtdBQSk V0R/iVCfzjEwLHO0jcKSq3xVKVOZJSvLzMRdy8IvLiEXflt4aqAOMuvUDRoO7u35kcfP bFTkFLiKJpX4IDp8T3mPSX3Izg1zngpTr5CLo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=CjiaZo0pi/1ZIfIuv/z8491chGCOhbVRU058q5My9uirpF3pLfMVrNZ0PI0JUfx/iK htow0Y7/dbhOusQoEjJk4DWYRwDtOTcc9GdxBFXFRu6d04EkwgKEqjnyYuXA6rXlQmzq 8Vc6SRlUPX5zweUMjQm3B7OE5W0L/O3UjkrOw= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.217.1.198 with SMTP id n48mr4287207wes.59.1295908440655; Mon, 24 Jan 2011 14:34:00 -0800 (PST) Received: by 10.216.16.21 with HTTP; Mon, 24 Jan 2011 14:34:00 -0800 (PST) Date: Mon, 24 Jan 2011 14:34:00 -0800 Message-ID: Subject: [gentoo-user] [OT] - Code translation tools? From: Mark Knecht To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: X-Archives-Hash: 4d3122698ee5287d66047902c6f90542 Hello, I'm wondering if there are any generic sorts of code translation tools in portage wherein I could translate from an 'uncommon' language no one here is likely to use (EasyLanguage) into C? As an example I've attached a little EL function that takes buy/sell command data an puts it away in an array for safe keeping. What tools are out there, if any, that might allow me to describe how EL works and then the tool does the conversion? Thanks, Mark Inputs: Array1[A1,AA1](NumericArrayRef), EType(StringSimple), EQty(NumericSimple), ESPrice(NumericSimple), ELPrice(NumericSimple), MyDate(NumericSimple), MyTime(NumericSimple) ; Switch (EType) Begin Case "Buy": Value1 = 1; Case "Sell": Value1 = 2; Case "SellShort": Value1 = 3; Case "BuyToCover": Value1 = 4; End ; If ((EQty >= 1) and (ESPrice = 0) and (ELPrice = 0)) then //Implies Market order Begin Array1[Value1,1] = Value1-1; Array1[Value1,2] = EQty; Array1[Value1,7] = MyDate; Array1[Value1,8] = MyTime; End else if ((EQty >= 1) and (ESPrice > 0) and (ELPrice = 0)) then //Implies Stop order Begin Array1[Value1,1] = Value1-1; Array1[Value1,3] = EQty; Array1[Value1,4] = ESPrice; Array1[Value1,7] = MyDate; Array1[Value1,8] = MyTime; End else if ((EQty >= 1) and (ESPrice = 0) and (ELPrice > 0)) then //Implies Limit order Begin Array1[Value1,1] = Value1-1; Array1[Value1,5] = EQty; Array1[Value1,6] = ELPrice; Array1[Value1,7] = MyDate; Array1[Value1,8] = MyTime; End ; MWK.ADE_SaveSysTraderTrades3_ = 0;