|Adding new Bit Operators for new C-type language [message #1046913]
||Mon, 22 April 2013 14:35
| Thomas Märkl
Registered: April 2013
I am currently extending the CDT to parse Handel-C, a C-type programming language used for programming FPGAs.
I am almost done with the implementation but I am having trouble adding Handel-C specific Bit-Operators such as "@" - Concatenation, "<-" Take and "\\"-Drop.
I tried adding them using the addKeyword(char, int) Method in the ScannerExtensionConfiguration as I have done with the Handel-C Keywords. However, with these Operators it doesn't work.
I found a Method in the TokenUtil.class file named isOperator(int kind) which returns true for all the C and CPP Operator Tokens defined in IToken. But this class cannot be extended effectively to build a plug-in.
Anyone know how to do this without modifying the CDT-Source?
Powered by FUDForum
. Page generated in 0.02098 seconds