Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FLEX: Is there a way to return multiple tokens at once

In flex, I want to return multiple tokens for one match of a regular expression. Is there a way to do this?

like image 491
Eburetto Avatar asked Feb 22 '09 09:02

Eburetto


1 Answers

The way I've been doing this is to create a queue of to-be-returned tokens, and at the beginning of yylex(), check for tokens and return them.

like image 102
Zifre Avatar answered Sep 29 '22 01:09

Zifre