Either we can hash all the syntax and once we encounter them in an IDE we
can change the color.This is good if number of syntax are few.If we have too
many syntaxes suggested trie is a good idea.->O(N) complexity
On Tue, Feb 22, 2011 at 11:09 AM, ritu wrote:
> whts the purpose of using trie?
> S
whts the purpose of using trie?
Simple array ll do ...
Syntax highlighting part can be achived through regular automata.
On Feb 20, 8:15 pm, vaibhav agrawal wrote:
> Use a Trie, which is a tree constructed using individual characters:
>
> b->red
> /
> a
> \
> c->green
>
> using the abov