Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Extending the scanner in CDT 5+


Is there an easy way to extend the default scanner for a new language
in CDT in order to recognise new tokens? In CDT 4 you used to be able
to define a language and return a class inside createScanner() which
extended DOMScanner and overrided (overrode?) fetchToken() where you
could add new tokens. Now it seems like the lexing is done inside a
Lexer class hidden within CPreprocessor class. I'm guessing this is a
cut and paste job?


Back to the top