CompuServe Thread

#LEX ????

9 messages in this thread
#5048From: Michael SheaDec 9, 1990 2:30 AM
Has anyone written a version of LEX for the Amiga? I looked in the libs with no avail. <<< Michael Shea >>>> <<< 76665,3360 >>>>
#5060From: Steve PietrowiczDec 9, 1990 12:33 PM
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
#5064From: Michael SheaDec 9, 1990 1:35 PM
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 >>>>
#5079From: Steve PietrowiczDec 9, 1990 5:28 PM
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
#5065From: Michael SheaDec 9, 1990 1:35 PM
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 >>>>
#5080From: Steve PietrowiczDec 9, 1990 5:28 PM
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
#5087From: Michael SheaDec 9, 1990 6:27 PM
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 >>>>
#5116From: Steve PietrowiczDec 10, 1990 7:20 AM
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
#5136From: Michael SheaDec 10, 1990 6:29 PM
Steve, Thanks for the info. I'll see if I can find that book. <<< Michael Shea >>>> <<< 76665,3360 >>>>