Top "Lexical-analysis" questions

Process of converting a sequence of characters into a sequence of tokens.

PHP Lexer and Parser Generator?

I know question Lex and Yacc in PHP was asked before but 1 year ago. Is there any new mature PHP …

php parsing lexical-analysis parser-generator
Flex/bison syntax error

I am trying to write a grammar which will be able to consume the following input: begin #this is a …

bison yacc lex flex-lexer lexical-analysis
Meaning of yywrap() in flex

What does this instructions mean in flex (lex) : #define yywrap() 1 and this [ \t]+$ i find it in the code below: (%% [ \…

gcc compiler-construction compilation flex-lexer lexical-analysis
Efficiently match multiple regexes in Python

Lexical analyzers are quite easy to write when you have regexes. Today I wanted to write a simple general analyzer …

python regex lexical-analysis
What is the lexical and syntactic analysis during the process of compiling in C Compiler?

What is the lexical and syntactic analysis during the process of compiling. Does the preprocessing happens after lexical and syntactic …

c parsing compilation preprocessor lexical-analysis
Practical difference between parser rules and lexer rules in ANTLR?

I understand the theory behind separating parser rules and lexer rules in theory, but what are the practical differences between …

parsing antlr lexical-analysis
Writing re-entrant lexer with Flex

I'm newbie to flex. I'm trying to write a simple re-entrant lexer/scanner with flex. The lexer definition goes below. …

thread-safety flex-lexer lexical-analysis reentrancy