From: Pietro Gagliardi <pietro10@mac.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: [9fans] Problems with pcc
Date: Sun, 11 Nov 2007 20:41:32 -0500 [thread overview]
Message-ID: <8FE905C8-9071-4DF4-B4E2-76A3991C4D0B@mac.com> (raw)
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, ...)
next reply other threads:[~2007-11-12 1:41 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-12 1:41 Pietro Gagliardi [this message]
2007-11-12 2:04 ` erik quanstrom
2007-11-12 14:17 ` Charles Forsyth
2007-11-12 14:24 ` erik quanstrom
2007-11-12 15:05 ` Charles Forsyth
2007-11-12 15:06 ` erik quanstrom
2007-11-12 17:43 ` Charles Forsyth
2007-11-12 20:52 ` Pietro Gagliardi
2007-11-12 22:27 ` Charles Forsyth
2007-11-16 10:19 ` Douglas A. Gwyn
2007-11-16 10:19 ` Douglas A. Gwyn
2007-11-16 19:46 ` Pietro Gagliardi
2007-11-19 10:15 ` Douglas A. Gwyn
2007-11-19 14:16 ` roland.kaufmann
2007-11-19 2:18 ` Pietro Gagliardi
2007-11-20 9:51 ` Douglas A. Gwyn
2007-11-19 2:22 ` Pietro Gagliardi
2007-11-20 9:51 ` Douglas A. Gwyn
2007-11-16 10:19 ` Douglas A. Gwyn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8FE905C8-9071-4DF4-B4E2-76A3991C4D0B@mac.com \
--to=pietro10@mac.com \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).