Free Republic
Browse · Search
Bloggers & Personal
Topics · Post Article

To: JRandomFreeper
Did you ever use yacc to pre-parse your code to correct your 'idiomatic' usage that was just incorrect?

I used yacc, lex, and cc in the 80's on Onyx and Xenix machines. It was a painful way to write applications. GCC and Turbo C came out around '86-87, and I haven't directly touched yacc or lex since :)

48 posted on 10/13/2011 11:14:58 PM PDT by grunt03 (live free or die)
[ Post Reply | Private Reply | To 42 | View Replies ]


To: grunt03
But yacc, sorry.... bison, these days, I suppose, does do a good job of substituting one list for another.

Bad pre-compiler, but pretty good at what it does, if you take it literally.

When you see 'x', replace it with 'y'.

That part works great.

Good that they leave stubs back to things like yacc and grep and ls for us old guys that just type that at a prompt.

Because yacc is now bison, grep is now egrep, and ls? Maybe it's still ls, but they change the stuff behind the delimiter.

/johnny

53 posted on 10/13/2011 11:25:32 PM PDT by JRandomFreeper (gone Galt)
[ Post Reply | Private Reply | To 48 | View Replies ]

Free Republic
Browse · Search
Bloggers & Personal
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson