help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Non-greedy wildcard possible? (Long)


From: Magnus Lie Hetland
Subject: Re: Non-greedy wildcard possible? (Long)
Date: Mon, 17 May 2004 04:31:13 +0200
User-agent: Mutt/1.4i

Hans Aberg <address@hidden>:
>
> At 17:41 +0200 2004/05/15, Magnus Lie Hetland wrote:
> >I'm working on a project (atox.sf.net) where I want to use Bison to
> >add markup to plain text. I need a rule to represent the plain text
> >segments (between the markup tokens) and that's proving a challenge.
> 
> Normally, this is done by the lexer, sending back say a token "text". Why
> is you not doing it that way?

Because what tokens are significant (as opposed to "plain text")
is described by a user-specified context-free grammar.

>   Hans Aberg

-- 
Magnus Lie Hetland              "Wake up!"  - Rage Against The Machine
http://hetland.org              "Shut up!"  - Linkin Park




reply via email to

[Prev in Thread] Current Thread [Next in Thread]