9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] lex witchcraft
@ 2002-01-18 22:38 rob pike
  2002-01-21 10:00 ` Boyd Roberts
  0 siblings, 1 reply; 5+ messages in thread
From: rob pike @ 2002-01-18 22:38 UTC (permalink / raw)
  To: 9fans

> also you may want to:
>
> % grep such /sys/src/9/pc/ether79c970.c
>
> i'd like to hear this one's story :)
>

Be careful or you might end up in a comment too.

-rob



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] lex witchcraft
  2002-01-18 22:38 [9fans] lex witchcraft rob pike
@ 2002-01-21 10:00 ` Boyd Roberts
  0 siblings, 0 replies; 5+ messages in thread
From: Boyd Roberts @ 2002-01-21 10:00 UTC (permalink / raw)
  To: 9fans

rob pike wrote:
> Be careful or you might end up in a comment too.

    "rob made me do it"

So, there is a precdent.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] lex witchcraft
@ 2002-01-22 20:45 Russ Cox
  0 siblings, 0 replies; 5+ messages in thread
From: Russ Cox @ 2002-01-22 20:45 UTC (permalink / raw)
  To: 9fans

Looks like it only clobbers the
current state the first time it is called,
presumably so that when you ask for the next
token the lexer doesn't reset itself.

Russ


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] lex witchcraft
@ 2002-01-18 22:34 andrey mirtchovski
  0 siblings, 0 replies; 5+ messages in thread
From: andrey mirtchovski @ 2002-01-18 22:34 UTC (permalink / raw)
  To: 9fans

also you may want to:

% grep such /sys/src/9/pc/ether79c970.c

i'd like to hear this one's story :)



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [9fans] lex witchcraft
@ 2002-01-18 22:28 Lyndon Nerenberg
  0 siblings, 0 replies; 5+ messages in thread
From: Lyndon Nerenberg @ 2002-01-18 22:28 UTC (permalink / raw)
  To: 9fans

/sys/src/cmd/grap/grapl.lx contains the fragment

        if (yybgin-yysvec-1 == 0) {     /* witchcraft */
                BEGIN A;
        }

What is this doing? (pic does this as well.)

--lyndon


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-01-22 20:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-18 22:38 [9fans] lex witchcraft rob pike
2002-01-21 10:00 ` Boyd Roberts
  -- strict thread matches above, loose matches on Subject: below --
2002-01-22 20:45 Russ Cox
2002-01-18 22:34 andrey mirtchovski
2002-01-18 22:28 Lyndon Nerenberg

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).