Below, there are some useful regular expressions for matching C-like primitive data values.
Archive for May 10, 2014
Below, is a simple example for counting words, lines and characters by using a Flex lexer.
Below, there are some useful regular expressions for matching C-like primitive data values.
Below, is a simple example for counting words, lines and characters by using a Flex lexer.
Ignoring multiline comments with start states in compilers with Flex.
In a previous article I have presented a way for ignoring multiline comments with an old fashion way.
In this article I’ll demonstrate a more elegant Flex-like way for ignoring multiline comments.
Continue reading →