[code] Interesting lexer challenge

From: Michael Richter <ttmrichter.att.gmail.com>
Date: Mon, 4 Nov 2013 15:20:43 +0800

Is there any conceivable way to have the list of available "keywords" (or
"functions" or whatever) in some way be built up dynamically as source code
is read?

As an example of what I mean:

my_function(ParmA, ParmB) = foo, bar.

When this is spotted, I'd like to be able to add "my_function" to the list
of functions. Then later when my_function(A, B) is called, it would be
highlighted as a function (rather than as a "fact", which it could also be).

"Perhaps people don't believe this, but throughout all of the discussions
of entering China our focus has really been what's best for the Chinese
people. It's not been about our revenue or profit or whatnot."
--Sergey Brin, demonstrating the emptiness of the "don't be evil" mantra.
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Mon 04 Nov 2013 - 02:20:43 EST

This archive was generated by hypermail 2.2.0 : Mon 04 Nov 2013 - 06:54:47 EST