|
From: | Akim Demaille |
Subject: | Re: Interactive parsing with Bison |
Date: | Tue, 27 Jun 2006 15:15:24 +0200 |
User-agent: | Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
>>> "Satya" == Satya <address@hidden> 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...
[Prev in Thread] | Current Thread | [Next in Thread] |