Re: [Flex-help] Problems analyzing VRML source
flex is a tool for generating scanners
Brought to you by:
wlestes
From: Rob Q. <rob...@gm...> - 2007-04-10 13:49:38
|
On 10/04/07, Tamas Nagy <ng...@ya...> wrote: > Hi! > > I'm using yacc too. > I think i have to do something in flex too. It is my understanding that Flex is just used for describing the regular expressions you want to use to match against text to find tokens. That's not very well written, but by example, in YACC/Bison: node: NODE L_BRACE children R_BRACE node | ; children: CHILDREN L_BRACKET node R_BRACKET Were NODE, L_BRACE, R_BRACE, CHILDREN, L_BRACKET and R_BRACKET are the tokens returned by Flex. Does that make any more sense? Sorry if I've missed the point and over simplified the problem. Rob |