* [9fans] Lex and Yacc question
@ 2006-03-01 15:36 Riza Dindir
2006-03-01 15:40 ` Brantley Coile
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Riza Dindir @ 2006-03-01 15:36 UTC (permalink / raw)
To: 9fans
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] Lex and Yacc question
2006-03-01 15:36 [9fans] Lex and Yacc question Riza Dindir
@ 2006-03-01 15:40 ` Brantley Coile
2006-03-01 15:42 ` C H Forsyth
2006-03-01 15:42 ` "Nils O. Selåsdal"
2 siblings, 0 replies; 4+ messages in thread
From: Brantley Coile @ 2006-03-01 15:40 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 84 bytes --]
/sys/src/cmd/cc/cc.y, cc.h, etc. No lex used.
/sys/doc/compiler.ps describes it.
[-- Attachment #2: Type: message/rfc822, Size: 2935 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] Lex and Yacc question
2006-03-01 15:36 [9fans] Lex and Yacc question Riza Dindir
2006-03-01 15:40 ` Brantley Coile
@ 2006-03-01 15:42 ` C H Forsyth
2006-03-01 15:42 ` "Nils O. Selåsdal"
2 siblings, 0 replies; 4+ messages in thread
From: C H Forsyth @ 2006-03-01 15:42 UTC (permalink / raw)
To: 9fans
[-- 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] Lex and Yacc question
2006-03-01 15:36 [9fans] Lex and Yacc question Riza Dindir
2006-03-01 15:40 ` Brantley Coile
2006-03-01 15:42 ` C H Forsyth
@ 2006-03-01 15:42 ` "Nils O. Selåsdal"
2 siblings, 0 replies; 4+ messages in thread
From: "Nils O. Selåsdal" @ 2006-03-01 15:42 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Riza Dindir wrote:
> 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?
http://cm.bell-labs.com/sources/plan9/sys/src/cmd/cc/cc.y
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-03-01 15:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-01 15:36 [9fans] Lex and Yacc question Riza Dindir
2006-03-01 15:40 ` Brantley Coile
2006-03-01 15:42 ` C H Forsyth
2006-03-01 15:42 ` "Nils O. Selåsdal"
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).