9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: David Leimbach <leimy2k@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] all you yacc experts
Date: Tue, 15 Nov 2011 13:49:39 -0800	[thread overview]
Message-ID: <CAJJ04x64Vp-3ipPxJytnuBzv_TemFGZQPUDJNYsmS8yiVQV1oQ@mail.gmail.com> (raw)
In-Reply-To: <20111115211034.GA6135@dinah>

[-- Attachment #1: Type: text/plain, Size: 1223 bytes --]

Pretty cool!

On Tue, Nov 15, 2011 at 1:10 PM, Anthony Martin <ality@pbrane.org> wrote:

> Attached is a modified version of p9p yacc that
> supports the Go grammar.  I'll be sending a
> version of Plan 9 yacc later today.
>
> The following is a description of the changes.
>
>  1. The %error-verbose directive is ignored.
>
>  2. A description of the final grammar is
>     printed before the state descriptions
>         in y.output.
>
>  3. The 'x' format for character literals is
>     now used instead of prefixing with a space.
>
>  4. The YYEMPTY define is now used to clear
>     the lookahead token (instead of an explicit
>         negative one).
>
>  5. Make yychar and yystate globals so they
>     can be inspected by external code.
>
>  5. Support C++ style // comments in actions.
>
>  6. Add a usage message.
>
>  7. Fix a few uses of sprint and strcpy.
>
>
> I've also sent out a changeset to the Go
> development list which adds support for
> using Plan 9 yacc to generate the special
> errors.
>
> One tiny nit is that Plan 9 uses the name
> yytoknames for debugging where Bison uses
> yytname.  I've just used sed for this.
>
> Any questions?
>   Anthony
>

[-- Attachment #2: Type: text/html, Size: 1630 bytes --]

  reply	other threads:[~2011-11-15 21:49 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-11 16:07 ron minnich
2011-11-11 17:16 ` Steve Simon
2011-11-11 20:54 ` Bakul Shah
2011-11-11 20:58   ` ron minnich
2011-11-11 21:30     ` Bakul Shah
2011-11-11 23:18       ` Steve Simon
2011-11-12  4:51       ` Lucio De Re
2011-11-12  5:15         ` Bruce Ellis
2011-11-12  5:36           ` Lucio De Re
2011-11-12  4:49     ` Lucio De Re
2011-11-11 23:38   ` Iruatã Souza
2011-11-12  9:23   ` Bakul Shah
2011-11-13  0:53     ` Bruce Ellis
2011-11-13  4:48       ` Lucio De Re
2011-11-13  5:55         ` Bruce Ellis
2011-11-13 10:08         ` Steve Simon
2011-11-13 10:30           ` Bruce Ellis
2011-11-13 17:08             ` ron minnich
2011-11-15 21:10 ` Anthony Martin
2011-11-15 21:49   ` David Leimbach [this message]
     [not found] <CAP6exY+7R9z3uusW683gFCCjvt+t6cZVpq-0TWZL2SiDBbMw3g@mail.gmail.c>
2011-11-11 16:09 ` erik quanstrom
2011-11-11 17:27   ` Lucio De Re
2011-11-11 17:25     ` ron minnich
2011-11-11 18:00       ` Lucio De Re
     [not found] <CABT0RTRAXEL454dP+gpC7gYtV9hT7mk+1znEVU0NP4CuKcW=vg@mail.gmail.com>
2011-11-13 22:30 ` Scato Logic
2011-11-13 23:22   ` Bruce Ellis

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=CAJJ04x64Vp-3ipPxJytnuBzv_TemFGZQPUDJNYsmS8yiVQV1oQ@mail.gmail.com \
    --to=leimy2k@gmail.com \
    --cc=9fans@9fans.net \
    /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).