#LEX ????
9 messages in this thread
Has anyone written a version of LEX for the Amiga? I looked in the libs
with no avail.
<<< Michael Shea >>>>
<<< 76665,3360 >>>>
You bet. It's called FLEX. I think it's in the C programming library. We
have a YACC clone there too…it's called BISON. If you can't find them,
let me know and I'll locate them for you.
Steve
Yes, I saw FLEX but was not sure from the description if it was a LEX clone
or not. I also seem to remember the keywords MANX and AZTEC. Does that
mean that LEX will only output code compatable with that compiler. I have
Lattice.
<<< Michael Shea >>>>
<<< 76665,3360 >>>>
Re: MANX output and FLEX….I don't really know, since I've never used
FLEX. I would think that unless the programmers did something *really*
dumb (like use in-line assembly), it would work with Lattice.
Steve
Steve,
I feel like a real BoneHead. I went to download FLEX and sure enough
there is the Keyword LEX right there. I missed it the first time. I also
see the YACC is a keyword. Do I need YACC (Bison) to use FLEX?
<<< Michael Shea >>>>
<<< 76665,3360 >>>>
Generally the two are used together, but you should be able to use either
FLEX or BISON without having to depend on the other. FLEX is just a
tokenizer, and BISON is the parser generator.
Steve
Steve,
I have never used LEX or YACC and am finding no usefull documentation
with FLEX. Any idea where I might be able to learn more about these
programs?
<<< Michael Shea >>>>
<<< 76665,3360 >>>>
Well, you could look at the UNIX documentation, but I don't really
recommend it, because the online docs are pretty sparse. There is a book
called "LEX & YACC" which is part of the Nutshell series published by
O'Reilly and Associates. It not only explains how to use LEX and YACC, but
it also has appendices that talk about FLEX and BISON. It costs about
$24.95
Steve
Steve,
Thanks for the info. I'll see if I can find that book.
<<< Michael Shea >>>>
<<< 76665,3360 >>>>