Thursday, July 14, 2005

Lex actions

An action is a block of C code that gets executed whenever any pattern in the lex specification is matched.As i dont really understand any of this , a good question would be to ask
"What are the typical actions?".
Here is the list of them.

1)Transformation of the matched string
2)Returning a token to a parser
3)Compiling statistics on the input.

0 Comments:

Post a Comment

<< Home