October 6th, 2012, 09:01 AM
Writing a Lexical Analyzer/Parser
Hi, i'm trying to learn more about how Lexical Analyzers/Parsers work. I haven't coded any classes yet, because i'm not really sure how the entire process from a Lexer to working code goes.
The lexer will split the source into tokens and assign a label to it. So suppose i have the following code:
The lexer will split that into token like this:
def -> keyword
myVar -> Identifier
= -> Operator
10 -> Number
So what is exactly the next step i have to take?
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.