Why Use Lexical Analyzers?

flex-lexer, lexical-analysis

Solution

Lexical analysis helps simplify parsing because the lexemes can be treated as abstract entities rather than concrete character sequences.

You'll need more than flex to build your language, though: Lexical analysis is just the first step.

Problem

I'm building my own language using Flex, but I want to know some things: - Why should I use lexical analyzers? - Are they going to help me in something? - Are they obligatory?

Original source