Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Adding new Bit Operators for new C-type language
Adding new Bit Operators for new C-type language [message #1046913] Mon, 22 April 2013 10:35
Thomas Märkl is currently offline Thomas Märkl
Messages: 1
Registered: April 2013
Junior Member
Hi Everyone!

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?
Previous Topic:Special character in editor
Next Topic:CDT reports error with va_list but compiles anyway
Goto Forum:
  


Current Time: Thu Aug 21 02:38:30 EDT 2014

Powered by FUDForum. Page generated in 0.02805 seconds