Compiler writing tools

Describe in detail the Compiler writing tools?

E

Expert

Verified

The compiler writing tools are as described below:

a) LEX: This is a tool which performs lexical analysis process. LEX helps to recognize the fundamental valid elements termed as tokens out of the input stream. This scans the entire program and produces valid tokens which are a group of characters such as keywords, constants, identifiers and so on. LEX as well keeps account of line numbers and white spaces.

b) YACC: This is a compiler tool for syntax analysis or parsing. It obtains valid tokens from the lexical analyzer and generates valid syntactical constructs as per the grammar of source language and produces syntax errors or else.

   Related Questions in Computer Engineering

©TutorsGlobe All rights reserved 2022-2023.