From mboxrd@z Thu Jan 1 00:00:00 1970 Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: <8FE905C8-9071-4DF4-B4E2-76A3991C4D0B@mac.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> From: Pietro Gagliardi Date: Sun, 11 Nov 2007 20:41:32 -0500 Subject: [9fans] Problems with pcc Topicbox-Message-UUID: f392c95c-ead2-11e9-9d60-3106f5b1d025 Hello. Aside from my cut project, I decided to see if I could use pcc to compile my own version of hoc(1) (http://www.andlabs.com/ hoc_p9.tgz) and just after calling yacc, pcc has given me a whirlwind of incomprehensible error messages that I just won't work on putting here (I'm also running Plan 9 in QEMU and I haven't set up email there). Does anyone know what's going on? My hoc, which derives directly from the original THE UNIX PROGRAMMING ENVIRONMENT version, adds a ton of features. Some of them: for loops, as in c, except middle part must be given the syntax "func n() = expression" adds functional programming more logic operators (exclusive or and some wacky ones that do exist) even more functions modulus - both in relation to the dividend and divisor more built-ins and constants $# returns number of arguments shift (like in shell), unshift, and $## returns number started with $+, $-, $* do operation on all arguments # comment Amazing string handling Arrays (though not that great a deal yet) It doesn't have Plan 9 hoc's named arguments (you still use $1, $3, ...)