>>> "Satya" == Satya  <[EMAIL PROTECTED]> writes:

 > Other commercial systems have taken a short cut and provided
 > facilities to describe the lexer specification as part of the grammar.
 > I was thinking if we can include a lexer specification into Bison:

 > %token TOK_IF   "if"  { //Action for if }
 > %token TOK_NUMBER "[0-9]+" { //action for number }

 > though this would be breaking an age old tradition of separating the
 > lexer and parser... (which has got its own advantages);

This is indeed a tempting idea, but there are many pitfalls bu there.
Let's serialize challenges...



Reply via email to