Linux Format

YACC AND LEX

There are two traditional UNIX utilities named and that enable you to create compilers for computer languages that you design yourself. Mike Lesk developed the original version around 1975 at the AT&T Bell Labs. It can help you make lexical analysers, and its main job is to break up an input stream into usable elements, which are called tokens. Lexical analysers are naïve tools that do not deal with the true meaning of the tokens – this is the job of a parser such as or . The lexical analysis phase usually eliminates all blanks, because apart from helping you separate tokens they have no other use. The utility has been subsequently been completely replaced by .

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format9 min read
The Epochalypse
On 2nd November 2000, a man calling himself John Titor began posting on Art Bell’s BSS forums, claiming to be from the O future year of 2036. Titor painted a grim version of the 21st century, a cross between Pat Frank’s 1959 post-apocalyptic epic Ala
Linux Format1 min read
Ultimate Desktop Upgrade!
LXF316 will be on sale Tuesday 28th May 2024 Word processors that can help craft that novel you’ve always been talking about and organise large projects. Revive the old roleplaying system for a digital age as we recreate our own play-by-mail gaming
Linux Format3 min read
Kernel Watch
Linus Torvalds announced the fourth RC (Release Candidate) for what will become Linux 6.9 in another few weeks. In his announcement, he noted that there was “Nothing particularly unusual going on this week – some new hardware mitigations may stand o

Related Books & Audiobooks