9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: C H Forsyth <forsyth@vitanuova.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Lex and Yacc question
Date: Wed,  1 Mar 2006 15:42:28 +0000	[thread overview]
Message-ID: <a39b146de6556c311236fbf5c985f31f@vitanuova.com> (raw)
In-Reply-To: <20060301153632.18339.qmail@web33804.mail.mud.yahoo.com>

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

/sys/src/cmd/cc/cc.y   (you might need the Plan 9 yacc)
the lexical analyser is hand written.
/sys/src/cmd/cc/lex.c
/sys/src/cmd/cc/mac.c (includes /sys/src/cmd/cc/macbody) for the built-in preprocessor

in fact, lex.c includes the compiler main program and some other little functions,
so the lexical analyser proper is smaller

[-- Attachment #2: Type: message/rfc822, Size: 2937 bytes --]

From: Riza Dindir <rdindir@yahoo.com>
To: 9fans@cse.psu.edu
Subject: [9fans] Lex and Yacc question
Date: Wed, 1 Mar 2006 07:36:32 -0800 (PST)
Message-ID: <20060301153632.18339.qmail@web33804.mail.mud.yahoo.com>


Hi All,

I was wondering if there is a grammar definition for
the
Plan9 C compiler (lex and yacc/flex and bison)? Any
documents for the compiler grammar, anywhere?

rd


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

  parent reply	other threads:[~2006-03-01 15:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-01 15:36 Riza Dindir
2006-03-01 15:40 ` Brantley Coile
2006-03-01 15:42 ` C H Forsyth [this message]
2006-03-01 15:42 ` "Nils O. Selåsdal"

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=a39b146de6556c311236fbf5c985f31f@vitanuova.com \
    --to=forsyth@vitanuova.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).